Upgrading ruff 0.5 to 0.6
Breaking0.5.7 → 0.6.9Breaking3Deprecated3New17Changed50Fixed56Other13
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Ruff now checks and formats Jupyter Notebook files without extra configuration.
- Ruff now assumes a src layout when resolving imports for isort rules, which can change which imports are flagged.
- Ruff's pytest rules now prefer decorators without parentheses when no arguments are given, which can change reported violations.
- The PT004 rule is deprecated and should no longer be relied on.
Must act Top 5 of 6 that need code or config changes
What you must change
Breaking3
Lint and format Jupyter Notebook by default.
Detect imports in
src layouts by default for isort rules.isortThe pytest rules
PT001 and PT023 now default to omitting decorator parentheses when there are no arguments.PT001PT023Deprecations to plan for
Deprecated3
Deprecates the
pytest-missing-fixture-name-underscore rule (PT004).PT004Deprecates the
pytest-incorrect-fixture-name-underscore rule (PT005).PT005Deprecates the
unpacked-list-comprehension rule (UP027).UP027