Release Notes
Preview features
- [
flake8-bugbear
] Implement mutable-contextvar-default (B039) (#12113)
- [
pycodestyle
] Whitespace after decorator (E204
) (#12140)
- [
pytest
] Reverse PT001
and PT0023
defaults (#12106)
Rule changes
- Enable token-based rules on source with syntax errors (#11950)
- [
flake8-bandit
] Detect httpx
for S113
(#12174)
- [
numpy
] Update NPY201
to include exception deprecations (#12065)
- [
pylint
] Generate autofix for duplicate-bases
(PLE0241
) (#12105)
Server
- Avoid syntax error notification for source code actions (#12148)
- Consider the content of the new cells during notebook sync (#12203)
- Fix replacement edit range computation (#12171)
Bug fixes
- Disable auto-fix when source has syntax errors (#12134)
- Fix cache key collisions for paths with separators (#12159)
- Make
requires-python
inference robust to ==
(#12091)
- Use char-wise width instead of
str
-width (#12135)
- [
pycodestyle
] Avoid E275
if keyword followed by comma (#12136)
- [
pycodestyle
] Avoid E275
if keyword is followed by a semicolon (#12095)
- [
pylint
] Skip dummy variables for PLR1704
(#12190)
Performance
- Remove allocation in
parse_identifier
(#12103)
- Use
CompactString
for Identifier
AST node (#12101)
Contributors
Install ruff 0.5.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.5.1/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.5.1/ruff-installer.ps1 | iex"
Download ruff 0.5.1