diff --git a/CHANGELOG.md b/CHANGELOG.md index c640f13d3d20b7..784666aec397b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 0.6.8 + +### Preview features + +- Avoid unnecessary parentheses when formatting `match cases` ([#13510](https://github.com/astral-sh/ruff/pull/13510)) +- Parenthesize `if` guards in `match..case` clauses ([#13513](https://github.com/astral-sh/ruff/pull/13513)) +- Detect basic wildcard imports in `ruff analyze graph` ([#13486](https://github.com/astral-sh/ruff/pull/13486)) +- \[pylint\] Implement `boolean-chained-comparison` (`R1716`) ([#13435](https://github.com/astral-sh/ruff/pull/13435)) + +### Rule changes + +- \[`lake8-simplify`\] Detect `SIM910` when using variadic keyword arguments, i.e., `**kwargs` ([#13503](https://github.com/astral-sh/ruff/pull/13503)) + +### Bug fixes + +- \[`pyupgrade`\] Avoid false negatives with non-reference shadowed bindings of loop variables (`UP028`) ([#13504](https://github.com/astral-sh/ruff/pull/13504)) +- Detect tuples bound to variadic positional arguments i.e. `*args` ([#13512](https://github.com/astral-sh/ruff/pull/13512)) +- Exit gracefully on broken pipe errors ([#13485](https://github.com/astral-sh/ruff/pull/13485)) +- Avoid panic when analyze graph hits broken pipe ([#13484](https://github.com/astral-sh/ruff/pull/13484)) + +### Performance + +- Reuse `BTreeSets` in module resolver ([#13440](https://github.com/astral-sh/ruff/pull/13440)) +- Skip traversal for non-compound statements ([#13441](https://github.com/astral-sh/ruff/pull/13441)) + ## 0.6.7 ### Preview features diff --git a/Cargo.lock b/Cargo.lock index 4f87a68ad5c705..37259f408fd07f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2253,7 +2253,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.6.7" +version = "0.6.8" dependencies = [ "anyhow", "argfile", @@ -2472,7 +2472,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.6.7" +version = "0.6.8" dependencies = [ "aho-corasick", "annotate-snippets 0.9.2", @@ -2803,7 +2803,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.6.7" +version = "0.6.8" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index 95dcc831c371d5..a7942d6f532cbf 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.7/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.6.7/install.ps1 | iex" +curl -LsSf https://astral.sh/ruff/0.6.8/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.6.8/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.7 + rev: v0.6.8 hooks: # Run the linter. - id: ruff diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index cb7e991d389355..2db5661d2af75b 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.6.7" +version = "0.6.8" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index e6abd9fb000ea3..90685690915e5b 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.6.7" +version = "0.6.8" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index bafb2cebaf4a86..780d937c6622a6 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.6.7" +version = "0.6.8" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index 2998b411b1ed61..1b6580ee492433 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.7 + rev: v0.6.8 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.7 + rev: v0.6.8 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.7 + rev: v0.6.8 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 19d0cd99ed0775..69ad818d5af82f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.6.7" +version = "0.6.8" 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 28fd15f0bef05d..3fc59362d0fdcc 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.6.7" +version = "0.6.8" description = "" authors = ["Charles Marsh "]