diff --git a/CHANGELOG.md b/CHANGELOG.md index 80c75174fc5f0..110cd5a1c2c94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,42 @@ # Changelog +## 0.15.7 + +Released on 2026-03-19. + +### Preview features + +- Display output severity in preview ([#23845](https://github.com/astral-sh/ruff/pull/23845)) +- Don't show `noqa` hover for non-Python documents ([#24040](https://github.com/astral-sh/ruff/pull/24040)) + +### Rule changes + +- \[`pycodestyle`\] Recognize `pyrefly:` as a pragma comment (`E501`) ([#24019](https://github.com/astral-sh/ruff/pull/24019)) + +### Server + +- Don't return code actions for non-Python documents ([#23905](https://github.com/astral-sh/ruff/pull/23905)) + +### Documentation + +- Add company AI policy to contributing guide ([#24021](https://github.com/astral-sh/ruff/pull/24021)) +- Document editor features for Markdown code formatting ([#23924](https://github.com/astral-sh/ruff/pull/23924)) +- \[`pylint`\] Improve phrasing (`PLC0208`) ([#24033](https://github.com/astral-sh/ruff/pull/24033)) + +### Other changes + +- Use PEP 639 license information ([#19661](https://github.com/astral-sh/ruff/pull/19661)) + +### Contributors + +- [@tmimmanuel](https://github.com/tmimmanuel) +- [@DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) +- [@amyreese](https://github.com/amyreese) +- [@statxc](https://github.com/statxc) +- [@dylwil3](https://github.com/dylwil3) +- [@hunterhogan](https://github.com/hunterhogan) +- [@renovate](https://github.com/renovate) + ## 0.15.6 Released on 2026-03-12. diff --git a/Cargo.lock b/Cargo.lock index 0ed3222d168b5..9ef4756366378 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2969,7 +2969,7 @@ dependencies = [ [[package]] name = "ruff" -version = "0.15.6" +version = "0.15.7" dependencies = [ "anyhow", "argfile", @@ -3231,7 +3231,7 @@ dependencies = [ [[package]] name = "ruff_linter" -version = "0.15.6" +version = "0.15.7" dependencies = [ "aho-corasick", "anyhow", @@ -3604,7 +3604,7 @@ dependencies = [ [[package]] name = "ruff_wasm" -version = "0.15.6" +version = "0.15.7" dependencies = [ "console_error_panic_hook", "console_log", diff --git a/README.md b/README.md index 2cb5a0ec6ef2b..b5bcfc36e0962 100644 --- a/README.md +++ b/README.md @@ -152,8 +152,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.15.6/install.sh | sh -powershell -c "irm https://astral.sh/ruff/0.15.6/install.ps1 | iex" +curl -LsSf https://astral.sh/ruff/0.15.7/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.15.7/install.ps1 | iex" ``` You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff), @@ -186,7 +186,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.15.6 + rev: v0.15.7 hooks: # Run the linter. - id: ruff-check diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index b972d4b0cad10..8729f1097324a 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff" -version = "0.15.6" +version = "0.15.7" publish = true authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_linter/Cargo.toml b/crates/ruff_linter/Cargo.toml index 6501c41178dcd..5bef6012fb57d 100644 --- a/crates/ruff_linter/Cargo.toml +++ b/crates/ruff_linter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_linter" -version = "0.15.6" +version = "0.15.7" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index 0c2797713a110..c1031db6dd51f 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruff_wasm" -version = "0.15.6" +version = "0.15.7" publish = false authors = { workspace = true } edition = { workspace = true } diff --git a/docs/formatter.md b/docs/formatter.md index cadd65cd3c037..38e3431eb2651 100644 --- a/docs/formatter.md +++ b/docs/formatter.md @@ -306,7 +306,7 @@ support needs to be explicitly included by adding it to `types_or`: ```yaml title=".pre-commit-config.yaml" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.6 + rev: v0.15.7 hooks: - id: ruff-format types_or: [python, pyi, jupyter, markdown] diff --git a/docs/integrations.md b/docs/integrations.md index e02fd27b060aa..3fa10f4223483 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.15.6-alpine + name: ghcr.io/astral-sh/ruff:0.15.7-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.15.6 + rev: v0.15.7 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.15.6 + rev: v0.15.7 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.15.6 + rev: v0.15.7 hooks: # Run the linter. - id: ruff-check diff --git a/docs/tutorial.md b/docs/tutorial.md index 5fa98ff0c40ef..a9860e06ba8ff 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.15.6 + rev: v0.15.7 hooks: # Run the linter. - id: ruff-check diff --git a/pyproject.toml b/pyproject.toml index 76e74fd322cd8..d6261cd140114 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ruff" -version = "0.15.6" +version = "0.15.7" 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 fbf8492c3f5f9..38f3b34179079 100644 --- a/scripts/benchmarks/pyproject.toml +++ b/scripts/benchmarks/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scripts" -version = "0.15.6" +version = "0.15.7" description = "" authors = ["Charles Marsh "]