diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fcad6f96903a3..157e287f630c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,53 @@ # Changelog +## 0.13.2 + +Released on 2025-09-25. + +### Preview features + +- \[`flake8-async`\] Implement `blocking-path-method` (`ASYNC240`) ([#20264](https://github.com/astral-sh/ruff/pull/20264)) +- \[`flake8-bugbear`\] Implement `map-without-explicit-strict` (`B912`) ([#20429](https://github.com/astral-sh/ruff/pull/20429)) +- \[`flake8-bultins`\] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (`A003`) ([#20178](https://github.com/astral-sh/ruff/pull/20178)) +- \[`ruff`\] Implement `logging-eager-conversion` (`RUF065`) ([#19942](https://github.com/astral-sh/ruff/pull/19942)) +- Include `.pyw` files by default when linting and formatting ([#20458](https://github.com/astral-sh/ruff/pull/20458)) + +### Bug fixes + +- Deduplicate input paths ([#20105](https://github.com/astral-sh/ruff/pull/20105)) +- \[`flake8-comprehensions`\] Preserve trailing commas for single-element lists (`C409`) ([#19571](https://github.com/astral-sh/ruff/pull/19571)) +- \[`flake8-pyi`\] Avoid syntax error from conflict with `PIE790` (`PYI021`) ([#20010](https://github.com/astral-sh/ruff/pull/20010)) +- \[`flake8-simplify`\] Correct fix for positive `maxsplit` without separator (`SIM905`) ([#20056](https://github.com/astral-sh/ruff/pull/20056)) +- \[`pyupgrade`\] Fix `UP008` not to apply when `__class__` is a local variable ([#20497](https://github.com/astral-sh/ruff/pull/20497)) +- \[`ruff`\] Fix `B004` to skip invalid `hasattr`/`getattr` calls ([#20486](https://github.com/astral-sh/ruff/pull/20486)) +- \[`ruff`\] Replace `-nan` with `nan` when using the value to construct a `Decimal` (`FURB164` ) ([#20391](https://github.com/astral-sh/ruff/pull/20391)) + +### Documentation + +- Add 'Finding ways to help' to CONTRIBUTING.md ([#20567](https://github.com/astral-sh/ruff/pull/20567)) +- Update import path to `ruff-wasm-web` ([#20539](https://github.com/astral-sh/ruff/pull/20539)) +- \[`flake8-bandit`\] Clarify the supported hashing functions (`S324`) ([#20534](https://github.com/astral-sh/ruff/pull/20534)) + +### Other changes + +- \[`playground`\] Allow hover quick fixes to appear for overlapping diagnostics ([#20527](https://github.com/astral-sh/ruff/pull/20527)) +- \[`playground`\] Fix non‑BMP code point handling in quick fixes and markers ([#20526](https://github.com/astral-sh/ruff/pull/20526)) + +### Contributors + +- [@BurntSushi](https://github.com/BurntSushi) +- [@mtshiba](https://github.com/mtshiba) +- [@second-ed](https://github.com/second-ed) +- [@danparizher](https://github.com/danparizher) +- [@ShikChen](https://github.com/ShikChen) +- [@PieterCK](https://github.com/PieterCK) +- [@GDYendell](https://github.com/GDYendell) +- [@RazerM](https://github.com/RazerM) +- [@TaKO8Ki](https://github.com/TaKO8Ki) +- [@amyreese](https://github.com/amyreese) +- [@ntbre](https://github.com/ntBre) +- [@MichaReiser](https://github.com/MichaReiser) + ## 0.13.1 Released on 2025-09-18. diff --git a/Cargo.lock b/Cargo.lock index 8fb3ec752f82ac..a001fa5c69dd3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2738,7 +2738,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.13.1" +version = "0.13.2" dependencies = [ "anyhow", "argfile", @@ -2994,7 +2994,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.13.1" +version = "0.13.2" dependencies = [ "aho-corasick", "anyhow", @@ -3348,7 +3348,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.13.1" +version = "0.13.2" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index 5c3f25dcfe3685..e98124be852154 100644 --- a/README.md +++ b/README.md @@ -148,8 +148,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.13.1/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.13.1/install.ps1 | iex" +curl -LsSf https://astral.sh/ruff/0.13.2/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.13.2/install.ps1 | iex" ``` You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff), @@ -182,7 +182,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.13.1 + rev: v0.13.2 hooks: # Run the linter. - id: ruff-check diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 6b824d7b46bc88..7f5fa895d8809b 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.13.1" +version = "0.13.2" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 44eac5d17c62a7..934f380a14c12f 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.13.1" +version = "0.13.2" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index 3ef70707611edd..53aceaf35da4fc 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.13.1" +version = "0.13.2" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index f0f074e5ddd8f8..fdb3edb8c44a07 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -80,7 +80,7 @@ You can add the following configuration to `.gitlab-ci.yml` to run a `ruff forma stage: build interruptible: true image: - name: ghcr.io/astral-sh/ruff:0.13.1-alpine + name: ghcr.io/astral-sh/ruff:0.13.2-alpine before_script: - cd $CI_PROJECT_DIR - ruff --version @@ -106,7 +106,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.13.1 + rev: v0.13.2 hooks: # Run the linter. - id: ruff-check @@ -119,7 +119,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.13.1 + rev: v0.13.2 hooks: # Run the linter. - id: ruff-check @@ -133,7 +133,7 @@ To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.13.1 + rev: v0.13.2 hooks: # Run the linter. - id: ruff-check diff --git a/docs/tutorial.md b/docs/tutorial.md index e85fd8060fdff7..8b1bcd4ec6691f 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -369,7 +369,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.13.1 + rev: v0.13.2 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 0fbb0737618969..8607315a193bf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.13.1" +version = "0.13.2" 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 45364646080d3a..9d3b3cffda5e24 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scripts" -version = "0.13.1" +version = "0.13.2" description = "" authors = ["Charles Marsh "]