Skip to content

Commit 6686f63

Browse files
authored
Bump 0.15.18 (#26135)
1 parent efbb732 commit 6686f63

12 files changed

Lines changed: 82 additions & 18 deletions

File tree

‎CHANGELOG.md‎

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

3+
## 0.15.18
4+
5+
Released on 2026-06-18.
6+
7+
### Preview features
8+
9+
- Handle nested `ruff:ignore` comments ([#25791](https://github.com/astral-sh/ruff/pull/25791))
10+
- Stop displaying severity in output ([#26050](https://github.com/astral-sh/ruff/pull/26050))
11+
- Use human-readable names in CLI output ([#25937](https://github.com/astral-sh/ruff/pull/25937))
12+
- Use human-readable names in LSP and playground diagnostics ([#26058](https://github.com/astral-sh/ruff/pull/26058))
13+
- \[`pydocstyle`\] Prevent property docstrings starting with verbs (`D421`) ([#23775](https://github.com/astral-sh/ruff/pull/23775))
14+
- \[`flake8-pyi`\] Extend `PYI033` to Python files ([#26129](https://github.com/astral-sh/ruff/pull/26129))
15+
16+
### Bug fixes
17+
18+
- Detect equivalent numeric mapping keys ([#26009](https://github.com/astral-sh/ruff/pull/26009))
19+
- Detect mapping keys equivalent to booleans ([#25982](https://github.com/astral-sh/ruff/pull/25982))
20+
- Detect repeated signed and complex dictionary keys ([#26007](https://github.com/astral-sh/ruff/pull/26007))
21+
22+
### Rule changes
23+
24+
- \[`flake8-pyi`\] Rename `PYI033` to `legacy-type-comment` ([#26131](https://github.com/astral-sh/ruff/pull/26131))
25+
26+
### Performance
27+
28+
- Use `ThinVec` for call keywords ([#25999](https://github.com/astral-sh/ruff/pull/25999))
29+
- Inline parser recovery context checks ([#26038](https://github.com/astral-sh/ruff/pull/26038))
30+
- Match parser keywords as bytes ([#26037](https://github.com/astral-sh/ruff/pull/26037))
31+
- Move value parsing out of lexing ([#25360](https://github.com/astral-sh/ruff/pull/25360))
32+
33+
### Server
34+
35+
- Render subdiagnostics and secondary annotations as related information ([#26011](https://github.com/astral-sh/ruff/pull/26011))
36+
37+
### Documentation
38+
39+
- Update fix availability for always-fixable rules ([#26091](https://github.com/astral-sh/ruff/pull/26091))
40+
- \[`flake8-tidy-imports`\] Add fix safety section (`TID252`) ([#17491](https://github.com/astral-sh/ruff/pull/17491))
41+
42+
### Parser
43+
44+
- Reject `__debug__` lambda parameters ([#26022](https://github.com/astral-sh/ruff/pull/26022))
45+
- Reject `_` as a match-pattern target ([#25977](https://github.com/astral-sh/ruff/pull/25977))
46+
- Reject multiple starred names in sequence patterns ([#25976](https://github.com/astral-sh/ruff/pull/25976))
47+
- Reject parenthesized star imports ([#26021](https://github.com/astral-sh/ruff/pull/26021))
48+
- Reject starred comprehension targets ([#26023](https://github.com/astral-sh/ruff/pull/26023))
49+
- Reject unparenthesized generator expressions in class bases ([#25978](https://github.com/astral-sh/ruff/pull/25978))
50+
- Reject `yield` expressions after commas ([#26024](https://github.com/astral-sh/ruff/pull/26024))
51+
- Validate function type parameter default order ([#25981](https://github.com/astral-sh/ruff/pull/25981))
52+
53+
### Playground
54+
55+
- Make diagnostic links clickable ([#26104](https://github.com/astral-sh/ruff/pull/26104))
56+
- Use diagnostic tags ([#26105](https://github.com/astral-sh/ruff/pull/26105))
57+
58+
### Contributors
59+
60+
- [@AlexWaygood](https://github.com/AlexWaygood)
61+
- [@ntBre](https://github.com/ntBre)
62+
- [@gtkacz](https://github.com/gtkacz)
63+
- [@MichaReiser](https://github.com/MichaReiser)
64+
- [@charliermarsh](https://github.com/charliermarsh)
65+
- [@Kalmaegi](https://github.com/Kalmaegi)
66+
367
## 0.15.17
468

569
Released on 2026-06-11.

‎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.17/install.sh | sh
156-
powershell -c "irm https://astral.sh/ruff/0.15.17/install.ps1 | iex"
155+
curl -LsSf https://astral.sh/ruff/0.15.18/install.sh | sh
156+
powershell -c "irm https://astral.sh/ruff/0.15.18/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.17
189+
rev: v0.15.18
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.17"
3+
version = "0.15.18"
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.17"
3+
version = "0.15.18"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

‎crates/ruff_linter/src/rules/pydocstyle/rules/property_docstring_starts_with_verb.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use crate::rules::pydocstyle::settings::Settings;
4646
///
4747
/// [Google Python style guide]: https://google.github.io/styleguide/pyguide.html#383-functions-and-methods
4848
#[derive(ViolationMetadata)]
49-
#[violation_metadata(preview_since = "NEXT_RUFF_VERSION")]
49+
#[violation_metadata(preview_since = "0.15.18")]
5050
pub(crate) struct PropertyDocstringStartsWithVerb {
5151
pub(crate) first_word: String,
5252
}

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

0 commit comments

Comments
 (0)