python
python copied to clipboard
Bump ruff from 0.4.3 to 0.4.8
Bumps ruff from 0.4.3 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] UpdateUP035for Python 3.13 and the latest version oftyping_extensions(#11693)- [
numpy] UpdateNPY001rule 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-formatflag (#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
typestatements (#11720)- Respect per-file ignores for blanket and redirected noqa rules (#11728)
Contributors
@AlexWaygood@MichaReiser@MichaelOultram-pexip@ajesipow@carljm@charliermarsh@dhruvmanila@github-actions@mtsokol@renovate@snowsignal@tobb10001@tusharsadhwaniv0.4.7
... (truncated)
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] UpdateUP035for Python 3.13 and the latest version oftyping_extensions(#11693)- [
numpy] UpdateNPY001rule 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-formatflag (#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
typestatements (#11720)- Respect per-file ignores for blanket and redirected noqa rules (#11728)
0.4.7
Preview features
- [
flake8-pyi] ImplementPYI064(#11325)- [
flake8-pyi] ImplementPYI066(#11541)- [
flake8-pyi] ImplementPYI057(#11486)- [
pyflakes] EnableF822in__init__.pyfiles by default (#11370)Formatter
- Fix incorrect placement of trailing stub function comments (#11632)
Server
... (truncated)
Commits
a8cf709Bump version to v0.4.8 (#11755)895eb3e[red-knot] refactor CFG outside of symbol table (#11746)2e0a975Disallow access toParsedoutput, use the API instead (#11741)b021b5bUseTokensfrom parsed type annotation or parsed source (#11740)eed6d78Update type annotation parsing API to returnParsed(#11739)8338db6ruff server: Formatting a document with syntax problems no longer spams a v...d056d09[red-knot] add if-statement support to FlowGraph (#11673)1645be0UpdateNPY001rule for NumPy 2.0 (#11735)2c86502CI: add job to run tests under minimum supported rust version (msrv) (#11737)2567e14Lexer should consider BOM for the start offset (#11732)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)