Skip to content

Upgrading ruff 0.5 to 0.6

Breaking0.5.7 → 0.6.9Breaking3Deprecated3New17Changed50Fixed56Other13

BreakingUpgrade verdict

3 breaking changes.

  • 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.
Top 5 of 6 that need code or config changes
Breaking3
Lint and format Jupyter Notebook by default.
Detect imports in src layouts by default for isort rules.
isort
The pytest rules PT001 and PT023 now default to omitting decorator parentheses when there are no arguments.
PT001PT023
Deprecated3
Deprecates the pytest-missing-fixture-name-underscore rule (PT004).
PT004
Deprecates the pytest-incorrect-fixture-name-underscore rule (PT005).
PT005
Deprecates the unpacked-list-comprehension rule (UP027).
UP027