Release Notes
Released on 2025-09-25.
Preview features
- [
flake8-async
] Implementblocking-path-method
(ASYNC240
) (#20264) - [
flake8-bugbear
] Implementmap-without-explicit-strict
(B912
) (#20429) - [
flake8-bultins
] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (A003
) (#20178) - [
ruff
] Implementlogging-eager-conversion
(RUF065
) (#19942) - Include
.pyw
files by default when linting and formatting (#20458)
Bug fixes
- Deduplicate input paths (#20105)
- [
flake8-comprehensions
] Preserve trailing commas for single-element lists (C409
) (#19571) - [
flake8-pyi
] Avoid syntax error from conflict withPIE790
(PYI021
) (#20010) - [
flake8-simplify
] Correct fix for positivemaxsplit
without separator (SIM905
) (#20056) - [
pyupgrade
] FixUP008
not to apply when__class__
is a local variable (#20497) - [
ruff
] FixB004
to skip invalidhasattr
/getattr
calls (#20486) - [
ruff
] Replace-nan
withnan
when using the value to construct aDecimal
(FURB164
) (#20391)
Documentation
- Add 'Finding ways to help' to CONTRIBUTING.md (#20567)
- Update import path to
ruff-wasm-web
(#20539) - [
flake8-bandit
] Clarify the supported hashing functions (S324
) (#20534)
Other changes
- [
playground
] Allow hover quick fixes to appear for overlapping diagnostics (#20527) - [
playground
] Fix non‑BMP code point handling in quick fixes and markers (#20526)
Contributors
- @BurntSushi
- @mtshiba
- @second-ed
- @danparizher
- @ShikChen
- @PieterCK
- @GDYendell
- @RazerM
- @TaKO8Ki
- @amyreese
- @ntbre
- @MichaReiser
Install ruff 0.13.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-installer.ps1 | iex"