From 499c0bd875c3f53c65f542a217b4d9a0962191c3 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 16 Aug 2024 17:48:06 +0100 Subject: [PATCH] Bump version to 0.6.1 (#12937) Co-authored-by: Dhruv Manilawala Co-authored-by: Micha Reiser --- CHANGELOG.md | 24 ++++++++++++++++++++++++ Cargo.lock | 6 +++--- README.md | 6 +++--- crates/ruff/Cargo.toml | 2 +- crates/ruff_linter/Cargo.toml | 2 +- crates/ruff_wasm/Cargo.toml | 2 +- docs/integrations.md | 6 +++--- pyproject.toml | 2 +- scripts/benchmarks/pyproject.toml | 2 +- 9 files changed, 38 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4154df3c3da37..2072db9310f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 0.6.1 + +This is a hotfix release to address an issue with `ruff-pre-commit`. In v0.6, +Ruff changed its behavior to lint and format Jupyter notebooks by default; +however, due to an oversight, these files were still excluded by default if +Ruff was run via pre-commit, leading to inconsistent behavior. +This has [now been fixed](https://github.com/astral-sh/ruff-pre-commit/pull/96). + +### Preview features + +- \[`fastapi`\] Implement `fast-api-unused-path-parameter` (`FAST003`) ([#12638](https://github.com/astral-sh/ruff/pull/12638)) + +### Rule changes + +- \[`pylint`\] Rename `too-many-positional` to `too-many-positional-arguments` (`R0917`) ([#12905](https://github.com/astral-sh/ruff/pull/12905)) + +### Server + +- Fix crash when applying "fix-all" code-action to notebook cells ([#12929](https://github.com/astral-sh/ruff/pull/12929)) + +### Other changes + +- \[`flake8-naming`\]: Respect import conventions (`N817`) ([#12922](https://github.com/astral-sh/ruff/pull/12922)) + ## 0.6.0 Check out the [blog post](https://astral.sh/blog/ruff-v0.6.0) for a migration guide and overview of the changes! diff --git a/Cargo.lock b/Cargo.lock index 2c69d7cb82250..d9033c14f217c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2060,7 +2060,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.6.0" +version = "0.6.1" dependencies = [ "anyhow", "argfile", @@ -2252,7 +2252,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.6.0" +version = "0.6.1" dependencies = [ "aho-corasick", "annotate-snippets 0.9.2", @@ -2572,7 +2572,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.6.0" +version = "0.6.1" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index d67381efb65dd..2e7101e3402a2 100644 --- a/README.md +++ b/README.md @@ -136,8 +136,8 @@ curl -LsSf https://astral.sh/ruff/install.sh | sh powershell -c "irm https://astral.sh/ruff/install.ps1 | iex" # For a specific version. -curl -LsSf https://astral.sh/ruff/0.6.0/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.6.0/install.ps1 | iex" +curl -LsSf https://astral.sh/ruff/0.6.1/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.6.1/install.ps1 | iex" ``` You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff), @@ -170,7 +170,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.0 + rev: v0.6.1 hooks: # Run the linter. - id: ruff diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index a0d16cb8b1c16..0367c4a313a3c 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.6.0" +version = "0.6.1" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 382d1929a7125..787b4a47d5008 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.6.0" +version = "0.6.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index ccacdef6266d3..97f050972eb77 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.6.0" +version = "0.6.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index 182e4316a3b6d..26e05a37951c7 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -78,7 +78,7 @@ Ruff can be used as a [pre-commit](https://pre-commit.com) hook via [`ruff-pre-c ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.0 + rev: v0.6.1 hooks: # Run the linter. - id: ruff @@ -91,7 +91,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook: ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.0 + rev: v0.6.1 hooks: # Run the linter. - id: ruff @@ -105,7 +105,7 @@ To run the hooks over Jupyter Notebooks too, add `jupyter` to the list of allowe ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.0 + rev: v0.6.1 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index d62ca28032da3..50b30e9a9cc6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.6.0" +version = "0.6.1" description = "An extremely fast Python linter and code formatter, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] readme = "README.md" diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index ea52dfe859d19..ac7aaae41b062 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.6.0" +version = "0.6.1" description = "" authors = ["Charles Marsh "]