Release Notes
Preview features
- Use
space
separator before parenthesized expressions in comprehensions with leading comments (#12282)
- [
flake8-async
] Update ASYNC100
to include anyio
and asyncio
(#12221)
- [
flake8-async
] Update ASYNC109
to include anyio
and asyncio
(#12236)
- [
flake8-async
] Update ASYNC110
to include anyio
and asyncio
(#12261)
- [
flake8-async
] Update ASYNC115
to include anyio
and asyncio
(#12262)
- [
flake8-async
] Update ASYNC116
to include anyio
and asyncio
(#12266)
Rule changes
- [
flake8-return
] Exempt properties from explicit return rule (RET501
) (#12243)
- [
numpy
] Add np.NAN
-to-np.nan
diagnostic (#12292)
- [
refurb
] Make list-reverse-copy
an unsafe fix (#12303)
Server
- Consider
include
and extend-include
settings in native server (#12252)
- Include nested configurations in settings reloading (#12253)
CLI
- Omit code frames for fixes with empty ranges (#12304)
- Warn about formatter incompatibility for
D203
(#12238)
Bug fixes
- Make cache-write failures non-fatal on Windows (#12302)
- Treat
not
operations as boolean tests (#12301)
- [
flake8-bandit
] Avoid S310
violations for HTTP-safe f-strings (#12305)
- [
flake8-bandit
] Support explicit string concatenations in S310 HTTP detection (#12315)
- [
flake8-bandit
] fix S113 false positive for httpx without timeout
argument (#12213)
- [
pycodestyle
] Remove "non-obvious" allowance for E721 (#12300)
- [
pyflakes
] Consider with
blocks as single-item branches for redefinition analysis (#12311)
- [
refurb
] Restrict forwarding for newline
argument in open()
calls to Python versions >= 3.10 (#12244)
Documentation
- Update help and documentation to reflect
--output-format full
default (#12248)
Performance
- Use more threads when discovering Python files (#12258)
Install ruff 0.5.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.2/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.2/ruff-installer.ps1 | iex"
Download ruff 0.5.2