Release Notes
This is a follow-up release to 0.12.6. Because of an issue in the package metadata, 0.12.6 failed to publish fully to PyPI and has been yanked. Similarly, there is no GitHub release or Git tag for 0.12.6. The contents of the 0.12.7 release are identical to 0.12.6, except for the updated metadata.
0.12.6 Release Notes
Preview features
- [
flake8-commas
] Add support for trailing comma checks in type parameter lists (COM812
,COM819
) (#19390) - [
pylint
] Implement auto-fix formissing-maxsplit-arg
(PLC0207
) (#19387) - [
ruff
] Offer fixes forRUF039
in more cases (#19065)
Bug fixes
- Support
.pyi
files in ruff analyze graph (#19611) - [
flake8-pyi
] Preserve inline comment in ellipsis removal (PYI013
) (#19399) - [
perflint
] Ignore rule if target isglobal
ornonlocal
(PERF401
) (#19539) - [
pyupgrade
] FixUP030
to avoid modifying double curly braces in format strings (#19378) - [
refurb
] Ignore decorated functions forFURB118
(#19339) - [
refurb
] Markint
andbool
cases forDecimal.from_float
as safe fixes (FURB164
) (#19468) - [
ruff
] FixRUF033
for named default expressions (#19115)
Rule changes
- [
flake8-blind-except
] ChangeBLE001
to permitlogging.critical(..., exc_info=True)
(#19520)
Performance
- Add support for specifying minimum dots in detected string imports (#19538)
Contributors
- @AlexWaygood
- @BurntSushi
- @CodeMan62
- @DimitriPapadopoulos
- @IDrokin117
- @Luunynliny
- @MichaReiser
- @UnboundVariable
- @carljm
- @charliermarsh
- @clockback
- @danparizher
- @dcreager
- @dhruvmanila
- @dylwil3
- @github-actions
- @junhsonjb
- @mtshiba
- @ntBre
- @renovate
- @robsdedude
- @sharkdp
- @thejchap
Install ruff 0.12.7
Install prebuilt binaries via shell script
:::sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.7/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.7/ruff-installer.ps1 | iex"