Skip to content

Upgrading ruff 0.6 to 0.7

Breaking0.6.9 → 0.7.4Breaking3New16Changed25Fixed39Other6

BreakingUpgrade verdict

3 breaking changes.

  • Two pytest lint rules now prefer decorators without empty parentheses, like @pytest.fixture instead of @pytest.fixture().
  • The old setting for allowing unused imports no longer exists; use the new pyflakes-specific setting instead.
  • The code for the useless-try-except lint rule changed from TRY302 to TRY203, so any configs or suppressions using the old code need updating.
3 items need code or config changes
Breaking3
The pytest rules PT001 and PT023 now default to omitting decorator parentheses when there are no arguments.
PT001PT023
The lint.allow-unused-imports setting is removed in favor of lint.pyflakes.allow-unused-imports.
lint.allow-unused-importslint.pyflakes.allow-unused-imports
The useless-try-except rule is recoded from TRY302 to TRY203 to match tryceratops.
TRY302TRY203useless-try-except