Release Notes
Preview features
- [
ruff
] Implement a recursive check forRUF060
(#17976) - [
airflow
] Enable autofixes forAIR301
andAIR311
(#17941) - [
airflow
] Apply try catch guard to allAIR3
rules (#17887) - [
airflow
] ExtendAIR311
rules (#17913)
Bug fixes
- [
flake8-bugbear
] IgnoreB028
ifskip_file_prefixes
is present (#18047) - [
flake8-pie
] Mark autofix forPIE804
as unsafe if the dictionary contains comments (#18046) - [
flake8-simplify
] Correct behavior forstr.split
/rsplit
withmaxsplit=0
(SIM905
) (#18075) - [
flake8-simplify
] FixSIM905
autofix forrsplit
creating a reversed list literal (#18045) - [
flake8-use-pathlib
] Suppress diagnostics for allos.*
functions that have thedir_fd
parameter (PTH
) (#17968) - [
refurb
] Mark autofix as safe only for number literals (FURB116
) (#17692)
Rule changes
- [
flake8-bandit
] SkipS608
for expressionless f-strings (#17999) - [
flake8-pytest-style
] Don't recommendusefixtures
forparametrize
values (PT019
) (#17650) - [
pyupgrade
] Addresource.error
as deprecated alias ofOSError
(UP024
) (#17933)
CLI
- Disable jemalloc on Android (#18033)
Documentation
- Update Neovim setup docs (#18108)
- [
flake8-simplify
] Add fix safety section (SIM103
) (#18086) - [
flake8-simplify
] Add fix safety section (SIM112
) (#18099) - [
pylint
] Add fix safety section (PLC0414
) (#17802) - [
pylint
] Add fix safety section (PLE4703
) (#17824) - [
pylint
] Add fix safety section (PLW1514
) (#17932) - [
pylint
] Add fix safety section (PLW3301
) (#17878) - [
ruff
] Add fix safety section (RUF007
) (#17755) - [
ruff
] Add fix safety section (RUF033
) (#17760)
Contributors
- @AlexWaygood
- @BurntSushi
- @DimitriPapadopoulos
- @InSyncWithFoo
- @LaBatata101
- @Lee-W
- @MichaReiser
- @Rogdham
- @Usul-Dev
- @VascoSch92
- @abhijeetbodas2001
- @bombsimon
- @carljm
- @charliermarsh
- @danparizher
- @dcreager
- @dhruvmanila
- @github-actions
- @ibraheemdev
- @kiran-4444
- @lukeanderson93
- @maxmynter
- @mtshiba
- @naslundx
- @ntBre
- @omahs
- @renovate
- @sharkdp
- @swnb
- @yunchipang
- @zanieb
Install ruff 0.11.10
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.10/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.11.10/ruff-installer.ps1 | iex"