Ruff v0.7.0 is released with a few breaking changes. Key updates include a fix ensuring all users now see the corrected default behavior for flake8-pytest-style rules PT001 and PT023 (parentheses are now removed by default, aligning with official pytest style). Other changes include recoding the useless-try-except rule from TRY302 to TRY203, removal of the lint.allow-unused-imports setting in favor of lint.pyflakes.allow-unused-imports, and expanded detection for the SIM115 open-file-with-context-handler rule now promoted from preview to stable.

3m read timeFrom astral.sh
Post cover image
Table of contents
Migrating to v0.7 #Default behavior changed for flake8-pytest-style rules #

Sort: