What's Changed
Deprecations
The format
command-line argument and configuration option has been renamed to output-format
. While Ruff will continue to respect format
when passed as a command-line argument or configuration option, this backwards-compatible support will be dropped in a future release. See: #7514.
Rules
- [
flake8-bandit
] ImplementS201
:flask-debug-true
by @mkniewallner in #7503 - [
flake8-bandit
] ImplementS507
:ssh_no_host_key_verification
by @mkniewallner in #7528 - [
flake8-logging
] ImplementLOG002
:invalid-get-logger-argument
by @dhruvmanila in #7399 - [
flake8-logging
] ImplementLOG007
:exception-without-exc-info
by @qdegraaf in #7410 - [
refurb
] ImplementFURB140
:reimplemented-starmap
by @SavchenkoValeriy in #7253 - [
refurb
] ImplementFURB148
:unnecessary-enumerate
by @tjkuson in #7454 - [
ruff
] Detectasyncio.get_running_loop
calls in RUF006 by @charliermarsh in #7562
Settings
- Show
--no-X
variants in CLI help by @charliermarsh in #7504 - Rename
format
option tooutput-format
by @MichaReiser in #7514 - Enable tab completion for
ruff rule
by @charliermarsh in #7560
Bug Fixes
- Add padding to prevent some autofix errors by @charliermarsh in #7461
- Remove parentheses when rewriting assert calls to statements by @charliermarsh in #7464
- Avoid flagging starred elements in C402 by @charliermarsh in #7466
- Extend
bad-dunder-method-name
to permitattrs
dunders by @tjkuson in #7472 - Avoid N802 violations for @overload methods by @JonathanPlasse in #7498
- Avoid flagging starred expressions in UP007 by @charliermarsh in #7505
- Ensure that LOG007 only triggers on
.exception()
calls by @charliermarsh in #7524 - Use strict sorted and union for NoQA mapping insertion by @dhruvmanila in #7531
- Avoid inserting imports directly after continuation by @charliermarsh in #7553
- Add padding in
PERF102
fixes by @charliermarsh in #7554 - Avoid invalid fix for parenthesized values in F601 by @charliermarsh in #7559
- Treat
os.error
as anOSError
alias by @charliermarsh in #7582 - Extend
bad-dunder-method-name
to permit__html__
by @jaap3 in #7492 - Fix stylist indentation with a formfeed by @konstin in #7489
New Contributors
- @MicaelJarniac made their first contribution in #5498
- @maheshsaripalli9 made their first contribution in #7552
- @T-256 made their first contribution in #7585
Full Changelog: v0.0.290...v0.0.291