Ruff v0.7.0
read at source ↗ astral.sh
Ruff v0.7.0
Source: Astral Date: 2024-10-17 URL: https://astral.sh/blog/ruff-v0.7.0
Summary
Ruff v0.7.0 is a housekeeping release: PT001/PT023 pytest decorator rules now consistently remove parentheses by default (completing a half-landed change from v0.6), the useless-try-except rule code moves from TRY302 to TRY203 for upstream tryceratops alignment, and SIM115 context-manager detection expands beyond open() and pathlib.Path to cover additional stdlib classes. Deprecated lint.allow-unused-imports setting removed.
Implications
Minor versions that fix incomplete behaviour are a trust signal. v0.7 cleans up the PT001/PT023 inconsistency that left users with different defaults depending on when they had last updated their config — the kind of subtle breaking change that causes “works on my machine” CI issues. Ruff’s maturity is partly measured by how cleanly it manages these transitions. The tryceratops alignment (TRY302 → TRY203) shows Ruff is staying in sync with the upstream plugin ecosystem it’s absorbing rather than forking it in place.