Skip to content

Document import placement and walrus operator conventions - #1923

Merged
bendichter merged 1 commit into
masterfrom
style-imports-and-walrus
Sep 15, 2026
Merged

bendichter merged 1 commit into
masterfrom
style-imports-and-walrus

Conversation

@bendichter

Copy link
Copy Markdown
Member

Adds two code style rules to DEVELOPMENT.md § Code style conventions:

  • Import placement: always top-level; never inside functions or methods
  • Walrus operator: use := where it simplifies code

These were originally proposed in #1807 against the inline ## Code Style section of CLAUDE.md. That section has since been replaced on master by a pointer to DEVELOPMENT.md, so they belong here instead. #1807 now takes master's CLAUDE.md unchanged and is scoped to the anatomy extraction it is named for.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LWivE9AD3FkcAPr66oNnfH

Two style rules that were previously proposed against the inline Code Style
section of CLAUDE.md, which has since been replaced by a pointer to this file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LWivE9AD3FkcAPr66oNnfH
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.44%. Comparing base (31807c3) to head (a281386).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1923      +/-   ##
==========================================
- Coverage   77.45%   77.44%   -0.02%     
==========================================
  Files          89       89              
  Lines       13397    13397              
==========================================
- Hits        10377    10375       -2     
- Misses       3020     3022       +2     
Flag Coverage Δ
unittests 77.44% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CodyCBakerPhD CodyCBakerPhD self-assigned this Sep 15, 2026
@CodyCBakerPhD CodyCBakerPhD added code quality Nonfunctional improvements to the codebase internal Changes only affect the internal API labels Sep 15, 2026
@bendichter
bendichter merged commit ff82dab into master Sep 15, 2026
39 of 43 checks passed
@bendichter
bendichter deleted the style-imports-and-walrus branch September 15, 2026 16:57
@github-actions

Copy link
Copy Markdown

🚀 PR was released in 0.80.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Nonfunctional improvements to the codebase internal Changes only affect the internal API released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants