Release Notes
Preview features
- [
flake8-use-pathlib
] Expand PTH201
to check all PurePath
subclasses (#19440)
Bug fixes
- [
flake8-blind-except
] Change BLE001
to correctly parse exception tuples (#19747)
- [
flake8-errmsg
] Exclude typing.cast
from EM101
(#19656)
- [
flake8-simplify
] Fix raw string handling in SIM905
for embedded quotes (#19591)
- [
flake8-import-conventions
] Avoid false positives for NFKC-normalized __debug__
import aliases in ICN001
(#19411)
- [
isort
] Fix syntax error after docstring ending with backslash (I002
) (#19505)
- [
pylint
] Mark PLC0207
fixes as unsafe when *args
unpacking is present (#19679)
- [
pyupgrade
] Prevent infinite loop with I002
(UP010
, UP035
) (#19413)
- [
ruff
] Parenthesize generator expressions in f-strings (RUF010
) (#19434)
Rule changes
- [
eradicate
] Don't flag pyrefly
pragmas as unused code (ERA001
) (#19731)
Documentation
- Replace "associative" with "commutative" in docs for
RUF036
(#19706)
- Fix copy and line separator colors in dark mode (#19630)
- Fix link to
typing
documentation (#19648)
- [
refurb
] Make more examples error out-of-the-box (#19695,#19673,#19672)
Other changes
- Include column numbers in GitLab output format (#19708)
- Always expand tabs to four spaces in diagnostics (#19618)
- Update pre-commit's
ruff
id (#19654)
Contributors
Install ruff 0.12.8
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.8/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.8/ruff-installer.ps1 | iex"
Download ruff 0.12.8