Skip to content

style(scripts): adopt pep 758 unparenthesized except syntax#100

Merged
x3ek merged 2 commits into
mainfrom
style/pep758-except-syntax
Jun 11, 2026
Merged

style(scripts): adopt pep 758 unparenthesized except syntax#100
x3ek merged 2 commits into
mainfrom
style/pep758-except-syntax

Conversation

@x3ek

@x3ek x3ek commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

Reformats the two multi-exception except (A, B, C): clauses in scripts/start-dev.py to the PEP 758 unparenthesized form except A, B, C:.

Why

Dependabot's ruff bump (#97, >=0.14,<0.16) fails lint because ruff 0.15's formatter rewrites these clauses under our py314 target. 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.py 4/4 (ruff format/check on 0.14.14, 267 tests, pyright).

🤖 Generated with Claude Code

x3ek and others added 2 commits June 11, 2026 11:15
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>
@x3ek x3ek merged commit 81a88e9 into main Jun 11, 2026
5 checks passed
@x3ek x3ek deleted the style/pep758-except-syntax branch June 11, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant