Release Notes
Preview features
- [
airflow
] Extend airflow context parameter check forBaseOperator.execute
(AIR302
) (#15713) - [
airflow
] UpdateAIR302
to check for deprecated context keys (#15144) - [
flake8-bandit
] Permit suspicious imports within stub files (S4
) (#15822) - [
pylint
] Do not triggerPLR6201
on empty collections (#15732) - [
refurb
] Do not emit diagnostic when loop variables are used outside loop body (FURB122
) (#15757) - [
ruff
] Add support for morere
patterns (RUF055
) (#15764) - [
ruff
] Check for shadowedmap
before suggesting fix (RUF058
) (#15790) - [
ruff
] Do not emit diagnostic when all arguments tozip()
are variadic (RUF058
) (#15744) - [
ruff
] Parenthesize fix when argument spans multiple lines forunnecessary-round
(RUF057
) (#15703)
Rule changes
- Preserve quote style in generated code (#15726, #15778, #15794)
- [
flake8-bugbear
] ExemptNewType
calls where the original type is immutable (B008
) (#15765) - [
pylint
] Honor banned top-level imports byTID253
inPLC0415
. (#15628) - [
pyupgrade
] Ignoreis_typeddict
andTypedDict
fordeprecated-import
(UP035
) (#15800)
CLI
- Fix formatter warning message for
flake8-quotes
option (#15788) - Implement tab autocomplete for
ruff config
(#15603)
Bug fixes
- [
flake8-comprehensions
] Do not emitunnecessary-map
diagnostic when lambda has different arity (C417
) (#15802) - [
flake8-comprehensions
] Parenthesizesorted
when needed forunnecessary-call-around-sorted
(C413
) (#15825) - [
pyupgrade
] Handle end-of-line comments forquoted-annotation
(UP037
) (#15824)
Documentation
- Add missing config docstrings (#15803)
- Add references to
trio.run_process
andanyio.run_process
(#15761) - Use
uv init --lib
in tutorial (#15718)
Contributors
- @AlexWaygood
- @Garrett-R
- @InSyncWithFoo
- @JelleZijlstra
- @Lee-W
- @MichaReiser
- @charliermarsh
- @dcreager
- @dhruvmanila
- @dylwil3
- @leotaku
- @marekhanus
- @mishamsk
- @naslundx
- @ntBre
- @renovate
- @sharkdp
- @sunank200
- @tjkuson
- @zanieb
Install ruff 0.9.4
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.9.4/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.9.4/ruff-installer.ps1 | iex"