Release Notes
Preview features
- [
flake8-use-pathlib
] ExpandPTH201
to check allPurePath
subclasses (#19440)
Bug fixes
- [
flake8-blind-except
] ChangeBLE001
to correctly parse exception tuples (#19747) - [
flake8-errmsg
] Excludetyping.cast
fromEM101
(#19656) - [
flake8-simplify
] Fix raw string handling inSIM905
for embedded quotes (#19591) - [
flake8-import-conventions
] Avoid false positives for NFKC-normalized__debug__
import aliases inICN001
(#19411) - [
isort
] Fix syntax error after docstring ending with backslash (I002
) (#19505) - [
pylint
] MarkPLC0207
fixes as unsafe when*args
unpacking is present (#19679) - [
pyupgrade
] Prevent infinite loop withI002
(UP010
,UP035
) (#19413) - [
ruff
] Parenthesize generator expressions in f-strings (RUF010
) (#19434)
Rule changes
- [
eradicate
] Don't flagpyrefly
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](https://github.com/astral-sh/ruff/pull/19695),[#19673](https://github.com/astral-sh/ruff/pull/19673),[#19672](https://github.com/19695,#19673,/issues/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
- @AlexWaygood
- @BurntSushi
- @MatthewMckee4
- @MeGaGiGaGon
- @MichaReiser
- @UnboundVariable
- @cristian64
- @danparizher
- @dcreager
- @deliro
- @dhruvmanila
- @github-actions
- @harshil21
- @hunterhogan
- @ibraheemdev
- @jimhoekstra
- @jscanvic
- @leandrobbraga
- @mtshiba
- @ngroman
- @ntBre
- @renovate
- @sharkdp
- @silamon
Install ruff 0.12.8
Install prebuilt binaries via shell script
:::sh
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
:::sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-installer.ps1 | iex"