Sourced from ruff's releases.
0.5.0
Release Notes
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
See also, the "Remapped rules" section which may result in disabled rules.
- Follow the XDG specification to discover user-level configurations on macOS (same as on other Unix platforms)
- Selecting
ALL
now excludes deprecated rules- The released archives now include an extra level of nesting, which can be removed with
--strip-components=1
when untarring.- The release artifact's file name no longer includes the version tag. This enables users to install via
/latest
URLs on GitHub.- The diagnostic ranges for some
flake8-bandit
rules were modified (#10667).Deprecations
The following rules are now deprecated:
syntax-error
(E999
): Syntax errors are now always shownRemapped rules
The following rules have been remapped to new rule codes:
blocking-http-call-in-async-function
:ASYNC100
toASYNC210
open-sleep-or-subprocess-in-async-function
:ASYNC101
split intoASYNC220
,ASYNC221
,ASYNC230
, andASYNC251
blocking-os-call-in-async-function
:ASYNC102
has been merged intoASYNC220
andASYNC221
trio-timeout-without-await
:TRIO100
toASYNC100
trio-sync-call
:TRIO105
toASYNC105
trio-async-function-with-timeout
:TRIO109
toASYNC109
trio-unneeded-sleep
:TRIO110
toASYNC110
trio-zero-sleep-call
:TRIO115
toASYNC115
repeated-isinstance-calls
:PLR1701
toSIM101
Stabilization
The following rules have been stabilized and are no longer in preview:
mutable-fromkeys-value
(RUF024
)default-factory-kwarg
(RUF026
)django-extra
(S610
)manual-dict-comprehension
(PERF403
)print-empty-string
(FURB105
)readlines-in-for
(FURB129
)if-expr-min-max
(FURB136
)bit-count
(FURB161
)redundant-log-base
(FURB163
)regex-flag-alias
(FURB167
)isinstance-type-none
(FURB168
)
... (truncated)
Sourced from ruff's changelog.
0.5.0
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
See also, the "Remapped rules" section which may result in disabled rules.
- Follow the XDG specification to discover user-level configurations on macOS (same as on other Unix platforms)
- Selecting
ALL
now excludes deprecated rules- The released archives now include an extra level of nesting, which can be removed with
--strip-components=1
when untarring.- The release artifact's file name no longer includes the version tag. This enables users to install via
/latest
URLs on GitHub.- The diagnostic ranges for some
flake8-bandit
rules were modified (#10667).Deprecations
The following rules are now deprecated:
syntax-error
(E999
): Syntax errors are now always shownRemapped rules
The following rules have been remapped to new rule codes:
blocking-http-call-in-async-function
:ASYNC100
toASYNC210
open-sleep-or-subprocess-in-async-function
:ASYNC101
split intoASYNC220
,ASYNC221
,ASYNC230
, andASYNC251
blocking-os-call-in-async-function
:ASYNC102
has been merged intoASYNC220
andASYNC221
trio-timeout-without-await
:TRIO100
toASYNC100
trio-sync-call
:TRIO105
toASYNC105
trio-async-function-with-timeout
:TRIO109
toASYNC109
trio-unneeded-sleep
:TRIO110
toASYNC110
trio-zero-sleep-call
:TRIO115
toASYNC115
repeated-isinstance-calls
:PLR1701
toSIM101
Stabilization
The following rules have been stabilized and are no longer in preview:
mutable-fromkeys-value
(RUF024
)default-factory-kwarg
(RUF026
)django-extra
(S610
)manual-dict-comprehension
(PERF403
)print-empty-string
(FURB105
)readlines-in-for
(FURB129
)if-expr-min-max
(FURB136
)bit-count
(FURB161
)redundant-log-base
(FURB163
)regex-flag-alias
(FURB167
)isinstance-type-none
(FURB168
)type-none-comparison
(FURB169
)
... (truncated)
244b923
Add necessary permissions for cargo-dist Docker build (#12072)a8b48fc
Release v0.5.0 (#12068)04c8597
[flake8-simplify
] Stabilize detection of Yoda conditions
for "constant" col...4029a25
[Ruff v0.5] Stabilise 15 pylint rules (#12051)0917ce1
Update documentation to mention etcetera
crate instead of
dirs
for user c...22cebdf
Add server config to filter out syntax error diagnostics (#12059)72b6c26
Simplify LinterResult
, avoid cloning
ParseError
(#11903)73851e7
Avoid displaying syntax error as log message (#11902)e7b4969
Remove E999
as a rule, disallow any disablement methods for
syntax error (#...c98d8a0
[pyflakes
] Stabilize detection of is comparisons to lists,
etc. (F632
) (#...