From 7b40428b6a1aaad88abb05b2fa291f0ae895d379 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 18 Sep 2025 14:25:17 -0500 Subject: [PATCH] Bump 0.13.1 (#20473) --- CHANGELOG.md | 60 +++++++++++++++++++++++++++++++ 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 | 8 ++--- docs/tutorial.md | 2 +- scripts/benchmarks/pyproject.toml | 2 +- 9 files changed, 75 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a48c3d03e4..2fcad6f969 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,65 @@ # Changelog +## 0.13.1 + +Released on 2025-09-18. + +### Preview features + +- \[`flake8-simplify`\] Detect unnecessary `None` default for additional key expression types (`SIM910`) ([#20343](https://github.com/astral-sh/ruff/pull/20343)) +- \[`flake8-use-pathlib`\] Add fix for `PTH123` ([#20169](https://github.com/astral-sh/ruff/pull/20169)) +- \[`flake8-use-pathlib`\] Fix `PTH101`, `PTH104`, `PTH105`, `PTH121` fixes ([#20143](https://github.com/astral-sh/ruff/pull/20143)) +- \[`flake8-use-pathlib`\] Make `PTH111` fix unsafe because it can change behavior ([#20215](https://github.com/astral-sh/ruff/pull/20215)) +- \[`pycodestyle`\] Fix `E301` to only trigger for functions immediately within a class ([#19768](https://github.com/astral-sh/ruff/pull/19768)) +- \[`refurb`\] Mark `single-item-membership-test` fix as always unsafe (`FURB171`) ([#20279](https://github.com/astral-sh/ruff/pull/20279)) + +### Bug fixes + +- Handle t-strings for token-based rules and suppression comments ([#20357](https://github.com/astral-sh/ruff/pull/20357)) +- \[`flake8-bandit`\] Fix truthiness: dict-only `**` displays not truthy for `shell` (`S602`, `S604`, `S609`) ([#20177](https://github.com/astral-sh/ruff/pull/20177)) +- \[`flake8-simplify`\] Fix diagnostic to show correct method name for `str.rsplit` calls (`SIM905`) ([#20459](https://github.com/astral-sh/ruff/pull/20459)) +- \[`flynt`\] Use triple quotes for joined raw strings with newlines (`FLY002`) ([#20197](https://github.com/astral-sh/ruff/pull/20197)) +- \[`pyupgrade`\] Fix false positive when class name is shadowed by local variable (`UP008`) ([#20427](https://github.com/astral-sh/ruff/pull/20427)) +- \[`pyupgrade`\] Prevent infinite loop with `I002` and `UP026` ([#20327](https://github.com/astral-sh/ruff/pull/20327)) +- \[`ruff`\] Recognize t-strings, generators, and lambdas in `invalid-index-type` (`RUF016`) ([#20213](https://github.com/astral-sh/ruff/pull/20213)) + +### Rule changes + +- \[`RUF102`\] Respect rule redirects in invalid rule code detection ([#20245](https://github.com/astral-sh/ruff/pull/20245)) +- \[`flake8-bugbear`\] Mark the fix for `unreliable-callable-check` as always unsafe (`B004`) ([#20318](https://github.com/astral-sh/ruff/pull/20318)) +- \[`ruff`\] Allow dataclass attribute value instantiation from nested frozen dataclass (`RUF009`) ([#20352](https://github.com/astral-sh/ruff/pull/20352)) + +### CLI + +- Add fixes to `output-format=sarif` ([#20300](https://github.com/astral-sh/ruff/pull/20300)) +- Treat panics as fatal diagnostics, sort panics last ([#20258](https://github.com/astral-sh/ruff/pull/20258)) + +### Documentation + +- \[`ruff`\] Add `analyze.string-imports-min-dots` to settings ([#20375](https://github.com/astral-sh/ruff/pull/20375)) +- Update README.md with Albumentations new repository URL ([#20415](https://github.com/astral-sh/ruff/pull/20415)) + +### Other changes + +- Bump MSRV to Rust 1.88 ([#20470](https://github.com/astral-sh/ruff/pull/20470)) +- Enable inline noqa for multiline strings in playground ([#20442](https://github.com/astral-sh/ruff/pull/20442)) + +### Contributors + +- [@chirizxc](https://github.com/chirizxc) +- [@danparizher](https://github.com/danparizher) +- [@IDrokin117](https://github.com/IDrokin117) +- [@amyreese](https://github.com/amyreese) +- [@AlexWaygood](https://github.com/AlexWaygood) +- [@dylwil3](https://github.com/dylwil3) +- [@njhearp](https://github.com/njhearp) +- [@woodruffw](https://github.com/woodruffw) +- [@dcreager](https://github.com/dcreager) +- [@TaKO8Ki](https://github.com/TaKO8Ki) +- [@BurntSushi](https://github.com/BurntSushi) +- [@salahelfarissi](https://github.com/salahelfarissi) +- [@MichaReiser](https://github.com/MichaReiser) + ## 0.13.0 Check out the [blog post](https://astral.sh/blog/ruff-v0.13.0) for a migration diff --git a/Cargo.lock b/Cargo.lock index d5481193fd..4e46c0525d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2728,7 +2728,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.13.0" +version = "0.13.1" dependencies = [ "anyhow", "argfile", @@ -2984,7 +2984,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.13.0" +version = "0.13.1" dependencies = [ "aho-corasick", "anyhow", @@ -3338,7 +3338,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.13.0" +version = "0.13.1" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index 6df6bec063..5c3f25dcfe 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.0/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.13.0/install.ps1 | iex" +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" ``` 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.0 + rev: v0.13.1 hooks: # Run the linter. - id: ruff-check diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index b990cff2d1..6b824d7b46 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.13.0" +version = "0.13.1" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 4d674e5c9e..44eac5d17c 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.13.0" +version = "0.13.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index 9b5a819af0..3ef7070761 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.13.0" +version = "0.13.1" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index 41e6216711..f0f074e5dd 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.0-alpine + name: ghcr.io/astral-sh/ruff:0.13.1-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.0 + rev: v0.13.1 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.0 + rev: v0.13.1 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.0 + rev: v0.13.1 hooks: # Run the linter. - id: ruff-check diff --git a/docs/tutorial.md b/docs/tutorial.md index 17f21dad27..e85fd8060f 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.0 + rev: v0.13.1 hooks: # Run the linter. - id: ruff diff --git a/scripts/benchmarks/pyproject.toml b/scripts/benchmarks/pyproject.toml index a614a3b5ce..4536464608 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scripts" -version = "0.13.0" +version = "0.13.1" description = "" authors = ["Charles Marsh "]