0.12.9
Release Notes
Preview features
- [
airflow
] Add check forairflow.secrets.cache.SecretCache
(AIR301
) (#17707) - [
ruff
] Offer a safe fix for multi-digit zeros (RUF064
) (#19847)
Bug fixes
- [
flake8-blind-except
] FixBLE001
false-positive onraise ... from None
(#19755) - [
flake8-comprehensions
] Fix false positive forC420
with attribute, subscript, or slice assignment targets (#19513) - [
flake8-simplify
] Fix handling of U+001C..U+001F whitespace (SIM905
) (#19849)
Rule changes
- [
pylint
] Use lowercase hex characters to match the formatter (PLE2513
) (#19808)
Documentation
- Fix
lint.future-annotations
link (#19876)
Other changes
-
Build
riscv64
binaries for release (#19819) -
Add rule code to error description in GitLab output (#19896)
-
Improve rendering of the
full
output format (#19415)Below is an example diff for
F401
:-unused.py:8:19: F401 [*] `pathlib` imported but unused +F401 [*] `pathlib` imported but unused + --> unused.py:8:19 | 7 | # Unused, _not_ marked as required (due to the alias). 8 | import pathlib as non_alias - | ^^^^^^^^^ F401 + | ^^^^^^^^^ 9 | 10 | # Unused, marked as required. | - = help: Remove unused import: `pathlib` +help: Remove unused import: `pathlib`
For now, the primary difference is the movement of the filename, line number, and column information to a second line in the header. This new representation will allow us to make further additions to Ruff's diagnostics, such as adding sub-diagnostics and multiple annotations to the same snippet.
Contributors
- @AlexWaygood
- @Gankra
- @MatthewMckee4
- @MichaReiser
- @PrettyWood
- @RazerM
- @carljm
- @danparizher
- @dcreager
- @deliro
- @dhruvmanila
- @ember91
- @ffgan
- @harupy
- @ibraheemdev
- @mtshiba
- @nguu0123
- @ntBre
- @oconnor663
- @prabhusneha
- @renovate
- @thejchap
Install ruff 0.12.9
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-installer.ps1 | iex"