diff --git a/CHANGELOG.md b/CHANGELOG.md index 157e287f63..3d8029e4e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,48 @@ # Changelog +## 0.13.3 + +Released on 2025-10-02. + +### Preview features + +- Display diffs for `ruff format --check` and add support for different output formats ([#20443](https://github.com/astral-sh/ruff/pull/20443)) +- \[`pyflakes`\] Handle some common submodule import situations for `unused-import` (`F401`) ([#20200](https://github.com/astral-sh/ruff/pull/20200)) +- \[`ruff`\] Do not flag `%r` + `repr()` combinations (`RUF065`) ([#20600](https://github.com/astral-sh/ruff/pull/20600)) + +### Bug fixes + +- \[`cli`\] Add conflict between `--add-noqa` and `--diff` options ([#20642](https://github.com/astral-sh/ruff/pull/20642)) +- \[`pylint`\] Exempt required imports from `PLR0402` ([#20381](https://github.com/astral-sh/ruff/pull/20381)) +- \[`pylint`\] Fix missing `max-nested-blocks` in settings display ([#20574](https://github.com/astral-sh/ruff/pull/20574)) +- \[`pyupgrade`\] Prevent infinite loop with `I002` and `UP026` ([#20634](https://github.com/astral-sh/ruff/pull/20634)) + +### Rule changes + +- \[`flake8-simplify`\] Improve help message clarity (`SIM105`) ([#20548](https://github.com/astral-sh/ruff/pull/20548)) + +### Documentation + +- Add the *The Basics* title back to CONTRIBUTING.md ([#20624](https://github.com/astral-sh/ruff/pull/20624)) +- Fixed documentation for try_consider_else ([#20587](https://github.com/astral-sh/ruff/pull/20587)) +- \[`isort`\] Clarify dependency between `order-by-type` and `case-sensitive` settings ([#20559](https://github.com/astral-sh/ruff/pull/20559)) +- \[`pylint`\] Clarify fix safety to include left-hand hashability (`PLR6201`) ([#20518](https://github.com/astral-sh/ruff/pull/20518)) + +### Other changes + +- \[`playground`\] Fix quick fixes for empty ranges in playground ([#20599](https://github.com/astral-sh/ruff/pull/20599)) + +### Contributors + +- [@TaKO8Ki](https://github.com/TaKO8Ki) +- [@ntBre](https://github.com/ntBre) +- [@dylwil3](https://github.com/dylwil3) +- [@MichaReiser](https://github.com/MichaReiser) +- [@danparizher](https://github.com/danparizher) +- [@LilMonk](https://github.com/LilMonk) +- [@mgiovani](https://github.com/mgiovani) +- [@IDrokin117](https://github.com/IDrokin117) + ## 0.13.2 Released on 2025-09-25. diff --git a/Cargo.lock b/Cargo.lock index 7d513593c8..6eee6d912c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2738,7 +2738,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.13.2" +version = "0.13.3" dependencies = [ "anyhow", "argfile", @@ -2994,7 +2994,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.13.2" +version = "0.13.3" dependencies = [ "aho-corasick", "anyhow", @@ -3348,7 +3348,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.13.2" +version = "0.13.3" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index e98124be85..4d958091aa 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.2/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.13.2/install.ps1 | iex" +curl -LsSf https://astral.sh/ruff/0.13.3/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.13.3/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.2 + rev: v0.13.3 hooks: # Run the linter. - id: ruff-check diff --git a/_typos.toml b/_typos.toml index 24406f10bb..c4ff9f6151 100644 --- a/_typos.toml +++ b/_typos.toml @@ -31,6 +31,7 @@ extend-ignore-re = [ "typ", # TODO: Remove this once the `TYP` redirects are removed from `rule_redirects.rs` "TYP", + "ntBre" ] [default.extend-identifiers] diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 7f5fa895d8..e59e7508cb 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.13.2" +version = "0.13.3" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 934f380a14..37b891b8b9 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.13.2" +version = "0.13.3" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index 53aceaf35d..41f76394d8 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.13.2" +version = "0.13.3" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index fdb3edb8c4..470a7af673 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.2-alpine + name: ghcr.io/astral-sh/ruff:0.13.3-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.2 + rev: v0.13.3 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.2 + rev: v0.13.3 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.2 + rev: v0.13.3 hooks: # Run the linter. - id: ruff-check diff --git a/docs/tutorial.md b/docs/tutorial.md index 8b1bcd4ec6..c0ede285e6 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.2 + rev: v0.13.3 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 8607315a19..baf21144c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.13.2" +version = "0.13.3" 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 9d3b3cffda..4ab274b53d 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scripts" -version = "0.13.2" +version = "0.13.3" description = "" authors = ["Charles Marsh "]