Release Notes
Preview features
- [
flake8-type-checking
, pyupgrade
, ruff
] Add from __future__ import annotations
when it would allow new fixes (TC001
, TC002
, TC003
, UP037
, RUF013
) (#19100)
- [
flake8-use-pathlib
] Add autofix for PTH109
(#19245)
- [
pylint
] Detect indirect pathlib.Path
usages for unspecified-encoding
(PLW1514
) (#19304)
Bug fixes
- [
flake8-bugbear
] Fix B017
false negatives for keyword exception arguments (#19217)
- [
flake8-use-pathlib
] Fix false negative on direct Path()
instantiation (PTH210
) (#19388)
- [
flake8-django
] Fix DJ008
false positive for abstract models with type-annotated abstract
field (#19221)
- [
isort
] Fix I002
import insertion after docstring with multiple string statements (#19222)
- [
isort
] Treat form feed as valid whitespace before a semicolon (#19343)
- [
pydoclint
] Fix SyntaxError
from fixes with line continuations (D201
, D202
) (#19246)
- [
refurb
] FURB164
fix should validate arguments and should usually be marked unsafe (#19136)
Rule changes
- [
flake8-use-pathlib
] Skip single dots for invalid-pathlib-with-suffix
(PTH210
) on versions >= 3.14 (#19331)
- [
pep8_naming
] Avoid false positives on standard library functions with uppercase names (N802
) (#18907)
- [
pycodestyle
] Handle brace escapes for t-strings in logical lines (#19358)
- [
pylint
] Extend invalid string character rules to include t-strings (#19355)
- [
ruff
] Allow strict
kwarg when checking for starmap-zip
(RUF058
) in Python 3.14+ (#19333)
Documentation
Contributors
Install ruff 0.12.4
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.4/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.4/ruff-installer.ps1 | iex"
Download ruff 0.12.4