Skip to content

Commit dc95ca8

Browse files
committed
Bump version to Ruff 0.9.9
1 parent 3d72138 commit dc95ca8

File tree

10 files changed

+54
-47
lines changed

10 files changed

+54
-47
lines changed

CHANGELOG.md

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.9.9
4+
5+
### Preview features
6+
7+
- Fix caching of unsupported-syntax errors ([#16425](https://github.com/astral-sh/ruff/pull/16425))
8+
9+
### Bug fixes
10+
11+
- Only show unsupported-syntax errors in editors when preview mode is enabled ([#16429](https://github.com/astral-sh/ruff/pull/16429))
12+
313
## 0.9.8
414

515
### Preview features
@@ -359,7 +369,7 @@ This release doesn’t remove or remap any existing stable rules.
359369
The following rules have been stabilized and are no longer in preview:
360370

361371
- [`stdlib-module-shadowing`](https://docs.astral.sh/ruff/rules/stdlib-module-shadowing/) (`A005`).
362-
This rule has also been renamed: previously, it was called `builtin-module-shadowing`.
372+
This rule has also been renamed: previously, it was called `builtin-module-shadowing`.
363373
- [`builtin-lambda-argument-shadowing`](https://docs.astral.sh/ruff/rules/builtin-lambda-argument-shadowing/) (`A006`)
364374
- [`slice-to-remove-prefix-or-suffix`](https://docs.astral.sh/ruff/rules/slice-to-remove-prefix-or-suffix/) (`FURB188`)
365375
- [`boolean-chained-comparison`](https://docs.astral.sh/ruff/rules/boolean-chained-comparison/) (`PLR1716`)
@@ -414,7 +424,7 @@ This release introduces the new 2025 stable style ([#13371](https://github.com/a
414424
### Server
415425

416426
- Improve the observability by removing the need for the ["trace" value](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#traceValue) to turn on or off logging. The server logging is solely controlled using the [`logLevel` server setting](https://docs.astral.sh/ruff/editors/settings/#loglevel)
417-
which defaults to `info`. This addresses the issue where users were notified about an error and told to consult the log, but it didn’t contain any messages. ([#15232](https://github.com/astral-sh/ruff/pull/15232))
427+
which defaults to `info`. This addresses the issue where users were notified about an error and told to consult the log, but it didn’t contain any messages. ([#15232](https://github.com/astral-sh/ruff/pull/15232))
418428
- Ignore diagnostics from other sources for code action requests ([#15373](https://github.com/astral-sh/ruff/pull/15373))
419429

420430
### CLI
@@ -645,27 +655,24 @@ Check out the [blog post](https://astral.sh/blog/ruff-v0.8.0) for a migration gu
645655
See also, the "Remapped rules" section which may result in disabled rules.
646656

647657
- **Default to Python 3.9**
648-
649-
Ruff now defaults to Python 3.9 instead of 3.8 if no explicit Python version is configured using [`ruff.target-version`](https://docs.astral.sh/ruff/settings/#target-version) or [`project.requires-python`](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires) ([#13896](https://github.com/astral-sh/ruff/pull/13896))
650-
658+
659+
Ruff now defaults to Python 3.9 instead of 3.8 if no explicit Python version is configured using [`ruff.target-version`](https://docs.astral.sh/ruff/settings/#target-version) or [`project.requires-python`](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires) ([#13896](https://github.com/astral-sh/ruff/pull/13896))
651660
- **Changed location of `pydoclint` diagnostics**
652-
653-
[`pydoclint`](https://docs.astral.sh/ruff/rules/#pydoclint-doc) diagnostics now point to the first-line of the problematic docstring. Previously, this was not the case.
654-
655-
If you've opted into these preview rules but have them suppressed using
656-
[`noqa`](https://docs.astral.sh/ruff/linter/#error-suppression) comments in
657-
some places, this change may mean that you need to move the `noqa` suppression
658-
comments. Most users should be unaffected by this change.
659-
661+
662+
[`pydoclint`](https://docs.astral.sh/ruff/rules/#pydoclint-doc) diagnostics now point to the first-line of the problematic docstring. Previously, this was not the case.
663+
664+
If you've opted into these preview rules but have them suppressed using
665+
[`noqa`](https://docs.astral.sh/ruff/linter/#error-suppression) comments in
666+
some places, this change may mean that you need to move the `noqa` suppression
667+
comments. Most users should be unaffected by this change.
660668
- **Use XDG (i.e. `~/.local/bin`) instead of the Cargo home directory in the standalone installer**
661-
662-
Previously, Ruff's installer used `$CARGO_HOME` or `~/.cargo/bin` for its target install directory. Now, Ruff will be installed into `$XDG_BIN_HOME`, `$XDG_DATA_HOME/../bin`, or `~/.local/bin` (in that order).
663-
664-
This change is only relevant to users of the standalone Ruff installer (using the shell or PowerShell script). If you installed Ruff using uv or pip, you should be unaffected.
665-
669+
670+
Previously, Ruff's installer used `$CARGO_HOME` or `~/.cargo/bin` for its target install directory. Now, Ruff will be installed into `$XDG_BIN_HOME`, `$XDG_DATA_HOME/../bin`, or `~/.local/bin` (in that order).
671+
672+
This change is only relevant to users of the standalone Ruff installer (using the shell or PowerShell script). If you installed Ruff using uv or pip, you should be unaffected.
666673
- **Changes to the line width calculation**
667-
668-
Ruff now uses a new version of the [unicode-width](https://github.com/unicode-rs/unicode-width) Rust crate to calculate the line width. In very rare cases, this may lead to lines containing Unicode characters being reformatted, or being considered too long when they were not before ([`E501`](https://docs.astral.sh/ruff/rules/line-too-long/)).
674+
675+
Ruff now uses a new version of the [unicode-width](https://github.com/unicode-rs/unicode-width) Rust crate to calculate the line width. In very rare cases, this may lead to lines containing Unicode characters being reformatted, or being considered too long when they were not before ([`E501`](https://docs.astral.sh/ruff/rules/line-too-long/)).
669676

670677
### Removed Rules
671678

@@ -879,15 +886,15 @@ Check out the [blog post](https://astral.sh/blog/ruff-v0.7.0) for a migration gu
879886
### Breaking changes
880887

881888
- The pytest rules `PT001` and `PT023` now default to omitting the decorator parentheses when there are no arguments
882-
([#12838](https://github.com/astral-sh/ruff/pull/12838), [#13292](https://github.com/astral-sh/ruff/pull/13292)).
883-
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
884-
See the [blog post](https://astral.sh/blog/ruff-v0.7.0) for more details.
889+
([#12838](https://github.com/astral-sh/ruff/pull/12838), [#13292](https://github.com/astral-sh/ruff/pull/13292)).
890+
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
891+
See the [blog post](https://astral.sh/blog/ruff-v0.7.0) for more details.
885892
- The `useless-try-except` rule (in our `tryceratops` category) has been recoded from `TRY302` to
886-
`TRY203` ([#13502](https://github.com/astral-sh/ruff/pull/13502)). This ensures Ruff's code is consistent with
887-
the same rule in the [`tryceratops`](https://github.com/guilatrova/tryceratops) linter.
893+
`TRY203` ([#13502](https://github.com/astral-sh/ruff/pull/13502)). This ensures Ruff's code is consistent with
894+
the same rule in the [`tryceratops`](https://github.com/guilatrova/tryceratops) linter.
888895
- The `lint.allow-unused-imports` setting has been removed ([#13677](https://github.com/astral-sh/ruff/pull/13677)). Use
889-
[`lint.pyflakes.allow-unused-imports`](https://docs.astral.sh/ruff/settings/#lint_pyflakes_allowed-unused-imports)
890-
instead.
896+
[`lint.pyflakes.allow-unused-imports`](https://docs.astral.sh/ruff/settings/#lint_pyflakes_allowed-unused-imports)
897+
instead.
891898

892899
### Formatter preview style
893900

@@ -906,7 +913,7 @@ Check out the [blog post](https://astral.sh/blog/ruff-v0.7.0) for a migration gu
906913
- \[`flake8-todos`\] Only flag the word "TODO", not words starting with "todo" (`TD006`) ([#13640](https://github.com/astral-sh/ruff/pull/13640))
907914
- \[`pycodestyle`\] Fix whitespace-related false positives and false negatives inside type-parameter lists (`E231`, `E251`) ([#13704](https://github.com/astral-sh/ruff/pull/13704))
908915
- \[`flake8-simplify`\] Stabilize preview behavior for `SIM115` so that the rule can detect files
909-
being opened from a wider range of standard-library functions ([#12959](https://github.com/astral-sh/ruff/pull/12959)).
916+
being opened from a wider range of standard-library functions ([#12959](https://github.com/astral-sh/ruff/pull/12959)).
910917

911918
### CLI
912919

@@ -3422,9 +3429,9 @@ Read Ruff's new [versioning policy](https://docs.astral.sh/ruff/versioning/).
34223429
- Unsafe fixes are no longer displayed or applied without opt-in ([#7769](https://github.com/astral-sh/ruff/pull/7769))
34233430
- Drop formatting specific rules from the default set ([#7900](https://github.com/astral-sh/ruff/pull/7900))
34243431
- The deprecated `format` setting has been removed ([#7984](https://github.com/astral-sh/ruff/pull/7984))
3425-
- The `format` setting cannot be used to configure the output format, use `output-format` instead
3426-
- The `RUFF_FORMAT` environment variable is ignored, use `RUFF_OUTPUT_FORMAT` instead
3427-
- The `--format` option has been removed from `ruff check`, use `--output-format` instead
3432+
- The `format` setting cannot be used to configure the output format, use `output-format` instead
3433+
- The `RUFF_FORMAT` environment variable is ignored, use `RUFF_OUTPUT_FORMAT` instead
3434+
- The `--format` option has been removed from `ruff check`, use `--output-format` instead
34283435

34293436
### Rule changes
34303437

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
@@ -149,8 +149,8 @@ curl -LsSf https://astral.sh/ruff/install.sh | sh
149149
powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
150150

151151
# For a specific version.
152-
curl -LsSf https://astral.sh/ruff/0.9.8/install.sh | sh
153-
powershell -c "irm https://astral.sh/ruff/0.9.8/install.ps1 | iex"
152+
curl -LsSf https://astral.sh/ruff/0.9.9/install.sh | sh
153+
powershell -c "irm https://astral.sh/ruff/0.9.9/install.ps1 | iex"
154154
```
155155

156156
You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
@@ -183,7 +183,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff
183183
```yaml
184184
- repo: https://github.com/astral-sh/ruff-pre-commit
185185
# Ruff version.
186-
rev: v0.9.8
186+
rev: v0.9.9
187187
hooks:
188188
# Run the linter.
189189
- id: ruff

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.9.8"
3+
version = "0.9.9"
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.9.8"
3+
version = "0.9.9"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

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.9.8"
3+
version = "0.9.9"
44
publish = false
55
authors = { workspace = true }
66
edition = { workspace = true }

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.9.8-alpine
83+
name: ghcr.io/astral-sh/ruff:0.9.9-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.9.8
109+
rev: v0.9.9
110110
hooks:
111111
# Run the linter.
112112
- id: ruff
@@ -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.9.8
122+
rev: v0.9.9
123123
hooks:
124124
# Run the linter.
125125
- id: ruff
@@ -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.9.8
136+
rev: v0.9.9
137137
hooks:
138138
# Run the linter.
139139
- id: ruff

docs/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be
365365
```yaml
366366
- repo: https://github.com/astral-sh/ruff-pre-commit
367367
# Ruff version.
368-
rev: v0.9.8
368+
rev: v0.9.9
369369
hooks:
370370
# Run the linter.
371371
- id: ruff

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "ruff"
7-
version = "0.9.8"
7+
version = "0.9.9"
88
description = "An extremely fast Python linter and code formatter, written in Rust."
99
authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }]
1010
readme = "README.md"

scripts/benchmarks/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "scripts"
3-
version = "0.9.8"
3+
version = "0.9.9"
44
description = ""
55
authors = ["Charles Marsh <charlie.r.marsh@gmail.com>"]
66

0 commit comments

Comments
 (0)