⬆ Bump ruff from 0.15.1 to 0.15.2
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(3 months ago)
(3 months ago)
dependencies python:uv
Bumps ruff from 0.15.1 to 0.15.2.
Release notes
Sourced from ruff's releases.
0.15.2
Release Notes
Released on 2026-02-19.
Preview features
Expand the default rule set (#23385)
In preview, Ruff now enables a significantly expanded default rule set of 412 rules, up from the stable default set of 59 rules. The new rules are mostly a superset of the stable defaults, with the exception of these rules, which are removed from the preview defaults:
multiple-imports-on-one-line(E401)module-import-not-at-top-of-file(E402)module-import-not-at-top-of-file(E701)multiple-statements-on-one-line-semicolon(E702)useless-semicolon(E703)none-comparison(E711)true-false-comparison(E712)not-in-test(E713)not-is-test(E714)type-comparison(E721)lambda-assignment(E731)ambiguous-variable-name(E741)ambiguous-class-name(E742)ambiguous-function-name(E743)undefined-local-with-import-star(F403)undefined-local-with-import-star-usage(F405)undefined-local-with-nested-import-star-usage(F406)forward-annotation-syntax-error(F722)If you use preview and prefer the old defaults, you can restore them with configuration like:
# ruff.toml[lint] select = ["E4", "E7", "E9", "F"]
pyproject.toml
[tool.ruff.lint] select = ["E4", "E7", "E9", "F"]
If you do give them a try, feel free to share your feedback in the GitHub discussion!
[
flake8-pyi] Also check string annotations (PYI041) (#19023)Bug fixes
... (truncated)
Changelog
Sourced from ruff's changelog.
0.15.2
Released on 2026-02-19.
Preview features
Expand the default rule set (#23385)
In preview, Ruff now enables a significantly expanded default rule set of 412 rules, up from the stable default set of 59 rules. The new rules are mostly a superset of the stable defaults, with the exception of these rules, which are removed from the preview defaults:
multiple-imports-on-one-line(E401)module-import-not-at-top-of-file(E402)module-import-not-at-top-of-file(E701)multiple-statements-on-one-line-semicolon(E702)useless-semicolon(E703)none-comparison(E711)true-false-comparison(E712)not-in-test(E713)not-is-test(E714)type-comparison(E721)lambda-assignment(E731)ambiguous-variable-name(E741)ambiguous-class-name(E742)ambiguous-function-name(E743)undefined-local-with-import-star(F403)undefined-local-with-import-star-usage(F405)undefined-local-with-nested-import-star-usage(F406)forward-annotation-syntax-error(F722)If you use preview and prefer the old defaults, you can restore them with configuration like:
# ruff.toml[lint] select = ["E4", "E7", "E9", "F"]
pyproject.toml
[tool.ruff.lint] select = ["E4", "E7", "E9", "F"]
If you do give them a try, feel free to share your feedback in the GitHub discussion!
... (truncated)
Commits
9d18ee9Hard code workflow name andcancel-in-progressonly for PRs (#23431)7cc15f0Bump 0.15.2 (#23430)d1b5443Add extension mapping to configuration file options (#23384)222574aExpand the default rule set (#23385)1465b5d[flake8-async] Fixin_async_contextlogic (#23426)410902f[pyupgrade] Fix handling oftyping.{io,re}(UP035) (#23131)729610a[ty] Fall back to ambiguous for large control flow graphs (#23399)1425c18[ty] Add code folding support97acaae[ty] Fix stack overflow for self-referentialTypeOfin annotations (#23407)1f380c8[ty] Update testsreveal_typeandNever(#23418)- 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 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)
Package Dependencies
Technical Details
| ID: | 14079996 |
| UUID: | 3980621234 |
| Node ID: | PR_kwDOF8_QEs7Fxesu |
| Host: | GitHub |
| Repository: | fastapi/sqlmodel |