Skip to content

Commit 6c498ab

Browse files
authored
Bump 0.15.16 (#25635)
1 parent e51e132 commit 6c498ab

12 files changed

Lines changed: 67 additions & 18 deletions

File tree

‎CHANGELOG.md‎

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

3+
## 0.15.16
4+
5+
Released on 2026-06-04.
6+
7+
### Preview features
8+
9+
- \[`flake8-async`\] Implement `yield-in-context-manager-in-async-generator` (`ASYNC119`) ([#24644](https://github.com/astral-sh/ruff/pull/24644))
10+
- \[`pylint`\] Narrow diagnostic range and exclude cases without exception handlers (`PLW0717`) ([#25440](https://github.com/astral-sh/ruff/pull/25440))
11+
- \[`ruff`\] Treat `yield` before `break` from a terminal loop as terminal (`RUF075`) ([#25447](https://github.com/astral-sh/ruff/pull/25447))
12+
13+
### Bug fixes
14+
15+
- \[`eradicate`\] Avoid flagging `ruff:ignore` comments as code (`ERA001`) ([#25537](https://github.com/astral-sh/ruff/pull/25537))
16+
- \[`eradicate`\] Fix `ERA001`/`RUF100` conflict when `noqa` is on commented-out code ([#25414](https://github.com/astral-sh/ruff/pull/25414))
17+
- \[`pyflakes`\] Avoid removing the `format` call when it would change behavior (`F523`) ([#25320](https://github.com/astral-sh/ruff/pull/25320))
18+
- \[`pylint`\] Avoid syntax errors in invalid character replacements in f-strings before Python 3.12 (`PLE2510`, `PLE2512`, `PLE2513`, `PLE2514`, `PLE2515`) ([#25544](https://github.com/astral-sh/ruff/pull/25544))
19+
- \[`pyupgrade`\] Avoid converting `format` calls with more kinds of side effects (`UP032`) ([#25484](https://github.com/astral-sh/ruff/pull/25484))
20+
21+
### Rule changes
22+
23+
- \[`flake8-pytest-style`\] Avoid fixes for ambiguous `argnames` and `argvalues` combinations (`PT006`) ([#24776](https://github.com/astral-sh/ruff/pull/24776))
24+
25+
### Performance
26+
27+
- Drop excess capacity from statement suites during parsing ([#25368](https://github.com/astral-sh/ruff/pull/25368))
28+
29+
### Documentation
30+
31+
- \[`pydocstyle`\] Improve discoverability of rules enabled for each convention ([#24973](https://github.com/astral-sh/ruff/pull/24973))
32+
- \[`ruff`\] Restore example code for Python versions before 3.15 (`RUF017`) ([#25439](https://github.com/astral-sh/ruff/pull/25439))
33+
- Fix typo `bin/active` → `bin/activate` in tutorial ([#25473](https://github.com/astral-sh/ruff/pull/25473))
34+
35+
### Other changes
36+
37+
- Shrink additional parser AST collections ([#25465](https://github.com/astral-sh/ruff/pull/25465))
38+
39+
### Contributors
40+
41+
- [@Redslayer112](https://github.com/Redslayer112)
42+
- [@koriyoshi2041](https://github.com/koriyoshi2041)
43+
- [@George-Ogden](https://github.com/George-Ogden)
44+
- [@TejasAmle](https://github.com/TejasAmle)
45+
- [@anishgirianish](https://github.com/anishgirianish)
46+
- [@ntBre](https://github.com/ntBre)
47+
- [@MichaReiser](https://github.com/MichaReiser)
48+
- [@loganrosen](https://github.com/loganrosen)
49+
- [@RafaelJohn9](https://github.com/RafaelJohn9)
50+
- [@adityasingh2400](https://github.com/adityasingh2400)
51+
352
## 0.15.15
453

554
Released on 2026-05-28.

‎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.15/install.sh | sh
156-
powershell -c "irm https://astral.sh/ruff/0.15.15/install.ps1 | iex"
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"
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.15
189+
rev: v0.15.16
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.15"
3+
version = "0.15.16"
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.15"
3+
version = "0.15.16"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

‎crates/ruff_linter/src/rules/flake8_async/rules/yield_in_context_manager_in_async_generator.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use crate::checkers::ast::Checker;
6666
/// - [`contextlib.aclosing`](https://docs.python.org/3/library/contextlib.html#contextlib.aclosing)
6767
/// - [trio.as_safe_channel](https://trio.readthedocs.io/en/latest/reference-core.html#trio.as_safe_channel)
6868
#[derive(ViolationMetadata)]
69-
#[violation_metadata(preview_since = "NEXT_RUFF_VERSION")]
69+
#[violation_metadata(preview_since = "0.15.16")]
7070
pub(crate) struct YieldInContextManagerInAsyncGenerator;
7171

7272
impl Violation for YieldInContextManagerInAsyncGenerator {

‎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.15"
3+
version = "0.15.16"
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.15
309+
rev: v0.15.16
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.15-alpine
83+
name: ghcr.io/astral-sh/ruff:0.15.16-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.15
109+
rev: v0.15.16
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.15
122+
rev: v0.15.16
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.15
136+
rev: v0.15.16
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.15
372+
rev: v0.15.16
373373
hooks:
374374
# Run the linter.
375375
- id: ruff-check

0 commit comments

Comments
 (0)