diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 629916fb78608..7ebef555a9c30 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -163,6 +163,9 @@ jobs: with: target: ${{ matrix.platform.target }} args: --release --locked --out dist + env: + # aarch64 build fails, see https://github.com/PyO3/maturin/issues/2110 + XWIN_VERSION: 16 - name: "Test wheel" if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} shell: bash diff --git a/CHANGELOG.md b/CHANGELOG.md index 170e5ccedcf52..802ee35cbf36a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # Changelog +## 0.4.9 + +### Preview features + +- \[`pylint`\] Implement `consider-dict-items` (`C0206`) ([#11688](https://github.com/astral-sh/ruff/pull/11688)) +- \[`refurb`\] Implement `repeated-global` (`FURB154`) ([#11187](https://github.com/astral-sh/ruff/pull/11187)) + +### Rule changes + +- \[`pycodestyle`\] Adapt fix for `E203` to work identical to `ruff format` ([#10999](https://github.com/astral-sh/ruff/pull/10999)) + +### Formatter + +- Fix formatter instability for lines only consisting of zero-width characters ([#11748](https://github.com/astral-sh/ruff/pull/11748)) + +### Server + +- Add supported commands in server capabilities ([#11850](https://github.com/astral-sh/ruff/pull/11850)) +- Use real file path when available in `ruff server` ([#11800](https://github.com/astral-sh/ruff/pull/11800)) +- Improve error message when a command is run on an unavailable document ([#11823](https://github.com/astral-sh/ruff/pull/11823)) +- Introduce the `ruff.printDebugInformation` command ([#11831](https://github.com/astral-sh/ruff/pull/11831)) +- Tracing system now respects log level and trace level, with options to log to a file ([#11747](https://github.com/astral-sh/ruff/pull/11747)) + +### CLI + +- Handle non-printable characters in diff view ([#11687](https://github.com/astral-sh/ruff/pull/11687)) + +### Bug fixes + +- \[`refurb`\] Avoid suggesting starmap when arguments are used outside call (`FURB140`) ([#11830](https://github.com/astral-sh/ruff/pull/11830)) +- \[`flake8-bugbear`\] Avoid panic in `B909` when checking large loop blocks ([#11772](https://github.com/astral-sh/ruff/pull/11772)) +- \[`refurb`\] Fix misbehavior of `operator.itemgetter` when getter param is a tuple (`FURB118`) ([#11774](https://github.com/astral-sh/ruff/pull/11774)) + ## 0.4.8 ### Performance diff --git a/Cargo.lock b/Cargo.lock index 4a26e9f54bd2b..4f31226a36529 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1938,7 +1938,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.4.8" +version = "0.4.9" dependencies = [ "anyhow", "argfile", @@ -2115,7 +2115,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.4.8" +version = "0.4.9" dependencies = [ "aho-corasick", "annotate-snippets 0.9.2", diff --git a/README.md b/README.md index d1dbd4e73b556..2dcf65f664f38 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,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.4.8 + rev: v0.4.9 hooks: # Run the linter. - id: ruff diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 955922b48e92f..f92d4834c7531 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.4.8" +version = "0.4.9" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 032c85f5acc4d..41c0235bd9129 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.4.8" +version = "0.4.9" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/integrations.md b/docs/integrations.md index ea539cdaa450f..7a451cfd4ba6c 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -14,7 +14,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.4.8 + rev: v0.4.9 hooks: # Run the linter. - id: ruff @@ -27,7 +27,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.4.8 + rev: v0.4.9 hooks: # Run the linter. - id: ruff @@ -41,7 +41,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.4.8 + rev: v0.4.9 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 4a4104ba34374..e59b6965820ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.4.8" +version = "0.4.9" 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 b1bc61caedcbc..82c1f07b7a98b 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scripts" -version = "0.4.8" +version = "0.4.9" description = "" authors = ["Charles Marsh "]