Skip to content

refactor: rename exception variable from exc to exception#803

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor/exception-naming
May 30, 2026
Merged

refactor: rename exception variable from exc to exception#803
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor/exception-naming

Conversation

@tcoratger
Copy link
Copy Markdown
Collaborator

Summary

  • Renames exc to exception in every except X as exc: clause across src/ and packages/testing/, plus all references inside those handlers (from exc, f"{exc}", etc.).
  • Adds the rule to the abbreviation list in CLAUDE.md so future code keeps the full spelling.
  • The stdlib exc_info name is explicitly preserved (it is already in the kept-as-is list).

Test plan

  • just check passes (ruff lint, ruff format, ty, codespell, mdformat).
  • grep -rn "as exc:" --include="*.py" returns no matches.

🤖 Generated with Claude Code

Expands the `exc` abbreviation used in `except X as exc:` clauses to
the full word `exception`, matching the no-abbreviations rule in
CLAUDE.md. Adds the rule explicitly so future code keeps the full
spelling.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tcoratger tcoratger merged commit 5c8a6fc into leanEthereum:main May 30, 2026
24 of 25 checks passed
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