Build(deps-dev): Bump ruff from 0.4.7 to 0.4.8
Bumps ruff from 0.4.7 to 0.4.8.
Release notes
Sourced from ruff's releases.
v0.4.8
Changes
Performance
- Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (#11457)
Preview features
- [
flake8-bugbear
] Implementreturn-in-generator
(B901
) (#11644)- [
flake8-pyi
] ImplementPYI063
(#11699)- [
pygrep_hooks
] Check blanket ignores via file-level pragmas (PGH004
) (#11540)Rule changes
- [
pyupgrade
] UpdateUP035
for Python 3.13 and the latest version oftyping_extensions
(#11693)- [
numpy
] UpdateNPY001
rule for NumPy 2.0 (#11735)Server
- Formatting a document with syntax problems no longer spams a visible error popup (#11745)
CLI
- Add RDJson support for
--output-format
flag (#11682)Bug fixes
- [
pyupgrade
] Write empty string in lieu of panic when fixingUP032
(#11696)- [
flake8-simplify
] Simplify double negatives inSIM103
(#11684)- Ensure the expression generator adds a newline before
type
statements (#11720)- Respect per-file ignores for blanket and redirected noqa rules (#11728)
Contributors
Changelog
Sourced from ruff's changelog.
0.4.8
Performance
- Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (#11457)
Preview features
- [
flake8-bugbear
] Implementreturn-in-generator
(B901
) (#11644)- [
flake8-pyi
] ImplementPYI063
(#11699)- [
pygrep_hooks
] Check blanket ignores via file-level pragmas (PGH004
) (#11540)Rule changes
- [
pyupgrade
] UpdateUP035
for Python 3.13 and the latest version oftyping_extensions
(#11693)- [
numpy
] UpdateNPY001
rule for NumPy 2.0 (#11735)Server
- Formatting a document with syntax problems no longer spams a visible error popup (#11745)
CLI
- Add RDJson support for
--output-format
flag (#11682)Bug fixes
Commits
-
a8cf709
Bump version to v0.4.8 (#11755) -
895eb3e
[red-knot] refactor CFG outside of symbol table (#11746) -
2e0a975
Disallow access toParsed
output, use the API instead (#11741) -
b021b5b
UseTokens
from parsed type annotation or parsed source (#11740) -
eed6d78
Update type annotation parsing API to returnParsed
(#11739) -
8338db6
ruff server
: Formatting a document with syntax problems no longer spams a v... -
d056d09
[red-knot] add if-statement support to FlowGraph (#11673) -
1645be0
UpdateNPY001
rule for NumPy 2.0 (#11735) -
2c86502
CI: add job to run tests under minimum supported rust version (msrv) (#11737) -
2567e14
Lexer should consider BOM for the start offset (#11732) - Additional commits viewable in compare view