style(scripts): adopt pep 758 unparenthesized except syntax#100
Merged
Conversation
ruff >=0.15 formats multi-exception except clauses without parentheses under target-version py314 (PEP 758). Current ruff 0.14 accepts both forms, so landing this first lets the Dependabot ruff bump (#97) pass lint after a rebase. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Reformats the two multi-exception
except (A, B, C):clauses inscripts/start-dev.pyto the PEP 758 unparenthesized formexcept A, B, C:.Why
Dependabot's ruff bump (#97,
>=0.14,<0.16) failslintbecause ruff 0.15's formatter rewrites these clauses under ourpy314target. Verified locally that current ruff 0.14.14 accepts the unparenthesized form too, so this lands cleanly under today's CI — after which #97 just needs a rebase to go green.Verified
python scripts/run-checks.py4/4 (ruff format/check on 0.14.14, 267 tests, pyright).🤖 Generated with Claude Code