Skip to content

Commit 7c645a9

Browse files
authored
Bump 0.15.17 (#25872)
1 parent f381eb1 commit 7c645a9

12 files changed

Lines changed: 78 additions & 18 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
# Changelog
22

3+
## 0.15.17
4+
5+
Released on 2026-06-11.
6+
7+
### Preview features
8+
9+
- Allow human-readable names in suppression comments ([#25614](https://github.com/astral-sh/ruff/pull/25614))
10+
- Fix handling of `ignore` comments within a `disable`/`enable` pair ([#25845](https://github.com/astral-sh/ruff/pull/25845))
11+
- Prioritize human-readable names in CLI output ([#25869](https://github.com/astral-sh/ruff/pull/25869))
12+
- Respect diagnostic start and parent ranges and trailing comments in `ruff:ignore` suppressions ([#25673](https://github.com/astral-sh/ruff/pull/25673))
13+
- \[`flake8-async`\] Add `trio.as_safe_channel` to safe decorators (`ASYNC119`) ([#25775](https://github.com/astral-sh/ruff/pull/25775))
14+
- \[`flake8-pytest-style`\] Also check `pytest_asyncio` fixtures ([#25375](https://github.com/astral-sh/ruff/pull/25375))
15+
- \[`ruff`\] Ban `pytest` autouse fixtures (`RUF076`) ([#25477](https://github.com/astral-sh/ruff/pull/25477))
16+
- \[`pyupgrade`\] Add `from __future__ import annotations` automatically (`UP007`, `UP045`) ([#23259](https://github.com/astral-sh/ruff/pull/23259))
17+
18+
### Bug fixes
19+
20+
- Fix diagnostic when `ruff:enable` or `ruff:disable` appears where `ruff:ignore` is expected ([#25700](https://github.com/astral-sh/ruff/pull/25700))
21+
- \[`pyupgrade`\] Preserve leading empty literals to avoid syntax errors (`UP032`) ([#25491](https://github.com/astral-sh/ruff/pull/25491))
22+
23+
### Rule changes
24+
25+
- \[`flake8-pytest-style`\] Clarify diagnostic message for single parameters (`PT007`) ([#25592](https://github.com/astral-sh/ruff/pull/25592))
26+
- \[`numpy`\] Drop autofix for `np.in1d` (`NPY201`) ([#25612](https://github.com/astral-sh/ruff/pull/25612))
27+
- \[`pylint`\] Exempt Python version comparisons (`PLR2004`) ([#25743](https://github.com/astral-sh/ruff/pull/25743))
28+
29+
### Performance
30+
31+
- Reserve AST `Vec`s with correct capacity for common cases ([#25451](https://github.com/astral-sh/ruff/pull/25451))
32+
33+
### Formatter
34+
35+
- Preserve whitespace for Quarto cell option comments ([#25641](https://github.com/astral-sh/ruff/pull/25641))
36+
37+
### CLI
38+
39+
- Allow rule names in `ruff rule` ([#25640](https://github.com/astral-sh/ruff/pull/25640))
40+
41+
### Other changes
42+
43+
- Fix playground diagnostics scrollbars ([#25642](https://github.com/astral-sh/ruff/pull/25642))
44+
45+
### Contributors
46+
47+
- [@SuryanshSS1011](https://github.com/SuryanshSS1011)
48+
- [@anishgirianish](https://github.com/anishgirianish)
49+
- [@romero-deshaw](https://github.com/romero-deshaw)
50+
- [@karlhillx](https://github.com/karlhillx)
51+
- [@carljm](https://github.com/carljm)
52+
- [@ntBre](https://github.com/ntBre)
53+
- [@11happy](https://github.com/11happy)
54+
- [@Kilo59](https://github.com/Kilo59)
55+
- [@oconnor663](https://github.com/oconnor663)
56+
- [@LeonidasZhak](https://github.com/LeonidasZhak)
57+
- [@DavisVaughan](https://github.com/DavisVaughan)
58+
- [@MeGaGiGaGon](https://github.com/MeGaGiGaGon)
59+
- [@jonathandung](https://github.com/jonathandung)
60+
- [@MichaReiser](https://github.com/MichaReiser)
61+
- [@brianmego](https://github.com/brianmego)
62+
363
## 0.15.16
464

565
Released on 2026-06-04.

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ curl -LsSf https://astral.sh/ruff/install.sh | sh
152152
powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
153153

154154
# For a specific version.
155-
curl -LsSf https://astral.sh/ruff/0.15.16/install.sh | sh
156-
powershell -c "irm https://astral.sh/ruff/0.15.16/install.ps1 | iex"
155+
curl -LsSf https://astral.sh/ruff/0.15.17/install.sh | sh
156+
powershell -c "irm https://astral.sh/ruff/0.15.17/install.ps1 | iex"
157157
```
158158

159159
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
186186
```yaml
187187
- repo: https://github.com/astral-sh/ruff-pre-commit
188188
# Ruff version.
189-
rev: v0.15.16
189+
rev: v0.15.17
190190
hooks:
191191
# Run the linter.
192192
- id: ruff-check

‎crates/ruff/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff"
3-
version = "0.15.16"
3+
version = "0.15.17"
44
publish = true
55
authors = { workspace = true }
66
edition = { workspace = true }

‎crates/ruff_linter/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff_linter"
3-
version = "0.15.16"
3+
version = "0.15.17"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

‎crates/ruff_linter/src/rules/ruff/rules/pytest_fixture_autouse.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use crate::rules::flake8_pytest_style::helpers::is_pytest_fixture;
6060
/// - [`pytest` documentation: Sharing fixtures across classes, modules, packages or session](https://docs.pytest.org/en/stable/how-to/fixtures.html#scope-sharing-fixtures-across-classes-modules-packages-or-session)
6161
/// - [`pytest` documentation: Fixtures can request other fixtures](https://docs.pytest.org/en/stable/how-to/fixtures.html#fixtures-can-request-other-fixtures)
6262
#[derive(ViolationMetadata)]
63-
#[violation_metadata(preview_since = "NEXT_RUFF_VERSION")]
63+
#[violation_metadata(preview_since = "0.15.17")]
6464
pub(crate) struct PytestFixtureAutouse;
6565

6666
impl Violation for PytestFixtureAutouse {

‎crates/ruff_wasm/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff_wasm"
3-
version = "0.15.16"
3+
version = "0.15.17"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

‎docs/formatter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ support needs to be explicitly included by adding it to `types_or`:
306306
```yaml title=".pre-commit-config.yaml"
307307
repos:
308308
- repo: https://github.com/astral-sh/ruff-pre-commit
309-
rev: v0.15.16
309+
rev: v0.15.17
310310
hooks:
311311
- id: ruff-format
312312
types_or: [python, pyi, jupyter, markdown]

‎docs/integrations.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ You can add the following configuration to `.gitlab-ci.yml` to run a `ruff forma
8080
stage: build
8181
interruptible: true
8282
image:
83-
name: ghcr.io/astral-sh/ruff:0.15.16-alpine
83+
name: ghcr.io/astral-sh/ruff:0.15.17-alpine
8484
before_script:
8585
- cd $CI_PROJECT_DIR
8686
- ruff --version
@@ -106,7 +106,7 @@ Ruff can be used as a [pre-commit](https://pre-commit.com) hook via [`ruff-pre-c
106106
```yaml
107107
- repo: https://github.com/astral-sh/ruff-pre-commit
108108
# Ruff version.
109-
rev: v0.15.16
109+
rev: v0.15.17
110110
hooks:
111111
# Run the linter.
112112
- id: ruff-check
@@ -119,7 +119,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
119119
```yaml
120120
- repo: https://github.com/astral-sh/ruff-pre-commit
121121
# Ruff version.
122-
rev: v0.15.16
122+
rev: v0.15.17
123123
hooks:
124124
# Run the linter.
125125
- id: ruff-check
@@ -133,7 +133,7 @@ To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed
133133
```yaml
134134
- repo: https://github.com/astral-sh/ruff-pre-commit
135135
# Ruff version.
136-
rev: v0.15.16
136+
rev: v0.15.17
137137
hooks:
138138
# Run the linter.
139139
- id: ruff-check

‎docs/tutorial.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be
369369
```yaml
370370
- repo: https://github.com/astral-sh/ruff-pre-commit
371371
# Ruff version.
372-
rev: v0.15.16
372+
rev: v0.15.17
373373
hooks:
374374
# Run the linter.
375375
- id: ruff-check

0 commit comments

Comments
 (0)