Skip to content

Conversation

@danceratopz
Copy link
Member

@danceratopz danceratopz commented Jan 5, 2026

🗒️ Description

Fix spelling and grammar errors in Python docstrings and comments under ./tests/.

This was performed semi-automatically with Claude. I have reviewed all changes (but happy for a cross-check), most of them, as part of the following PRs:

🔗 Related Issues or PRs

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx tox -e static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered adding an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

Cute Animal Picture

image

danceratopz and others added 20 commits January 1, 2026 16:26
Reviewed ~69 files in tests/prague directory for grammar issues.
No grammar issues found. All docstrings, comments, and string
messages are grammatically correct.

Marked tests/prague/**/*.py as complete in the grammar check
checklist.

Co-authored-by: Claude <noreply@anthropic.com>
* chore(docs): fix grammar and spelling in tests/frontier/**/*.py

Fix various grammar and spelling issues across 14 test files:
- Capitalize module docstrings ("test X" -> "Test X")
- Fix possessive "it's" -> "its" in 4 locations
- Fix "Weather" -> "Whether" spelling error
- Fix redundant words ("fork supports" -> "fork")
- Fix incomplete sentences and add missing periods
- Fix subject-verb agreement ("stack underflow" -> "stack underflows")
- Remove duplicate words ("Test DUP Test" -> "Test")

* Update tests/frontier/scenarios/programs/all_frontier_opcodes.py

---------

Co-authored-by: Claude <noreply@anthropic.com>
* docs: fix grammar in tests/frontier/**/*.py

Fix grammar issues in module and function docstrings:
- test_create_deposit_oog.py: Fix module docstring grammar
- test_create_one_byte.py: Fix run-on sentence and verb forms
- test_create_suicide_store.py: Fix missing article and verb agreement
- scenarios/common.py: Fix missing periods and capitalization
- validation/test_header.py: Fix incomplete phrase
- validation/test_transaction.py: Fix awkward phrasing

* Update tests/frontier/create/test_create_suicide_store.py

---------

Co-authored-by: Claude <noreply@anthropic.com>
Fix "there for" -> "therefore" typo in a comment in test_tload_calls.py

Co-authored-by: Claude <noreply@anthropic.com>
Remove extraneous leading space from module docstring in
test_blob_reserve_price_with_bpo.py.

Co-authored-by: Claude <noreply@anthropic.com>
Fix minor grammar and spelling issues in benchmark test files:
- helpers.py: Add missing word "how" in docstring
- test_log.py: Fix incomplete comment with missing word "data"
- test_account_query.py: Fix incomplete sentence in docstring

Co-authored-by: Claude <noreply@anthropic.com>
Fix typo "teansition" -> "transition" in load_blockchain_tests.py

Co-authored-by: Claude <noreply@anthropic.com>
Fix incomplete sentence in TestMultipleWithdrawalsSameAddress docstring.
The sentence "Test that multiple withdrawals can be sent to the same
address in." was missing proper structure. Rewrote following the pattern
used by TestUseValueInTx with self-contained summary and description.

Co-authored-by: Claude <noreply@anthropic.com>
Fix inaccurate docstrings in test_gas.py files that incorrectly
listed precompiles not actually tested by each file.

Co-authored-by: Claude <noreply@anthropic.com>
Fix grammar issues in docstrings:
- test_blake2_delegatecall.py: "before and after added" -> "before and after being added"
- test_precompile_warming.py: "a precompile addresses" -> "precompile addresses"

Co-authored-by: Claude <noreply@anthropic.com>
- Fix subject-verb disagreement and missing period in spec.py
- Fix "pre existing" -> "pre-existing" in test_block_access_lists_eip7702.py
- Fix missing "be" in "expect the account to non-existent" in test_block_access_lists.py
- Rewrite unclear module docstring in test_create_returndata.py

Co-authored-by: Claude <noreply@anthropic.com>
Reviewed 17 files across tests/london/**/*.py, tests/homestead/**/*.py,
and tests/paris/**/*.py for grammar issues. No corrections needed -
all docstrings, comments, and string messages are grammatically correct.

Co-authored-by: Claude <noreply@anthropic.com>
- "can help creating" → "can help create"
- "in forks pre Byzantium" → "in pre-Byzantium forks"

Co-authored-by: Claude <noreply@anthropic.com>
Corrected copy-paste errors from EIP-6110 deposits tests:
- EIP-7002: "deposit tests" -> "withdrawal tests"
- EIP-7251: "deposit transaction" -> "consolidation request"
- EIP-7685: "deposit tests" -> "request tests"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed "Note: Adding a new test Add a function" to
"Note: To add a new test, add a function" for proper grammar.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Removed duplicate "error error" -> "error" in
test_excess_blob_gas_fork_transition.py.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added missing article "a" before "block" in spec.py comment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Moved implementation comment into docstring, fixing punctuation and
formatting issues in the process:
- `Transfer`` -> `Transfer`
- `True`` -> `True`
- Added proper sentence structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danceratopz danceratopz added A-doc Area: documentation A-spec-tests Area: tests for specifications e.g. json_infra labels Jan 5, 2026
@LouisTsai-Csie
Copy link
Collaborator

I love using AI like this.

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.33%. Comparing base (d618e52) to head (9db47b2).
⚠️ Report is 7 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #1968   +/-   ##
================================================
  Coverage            86.33%   86.33%           
================================================
  Files                  538      538           
  Lines                34557    34557           
  Branches              3222     3222           
================================================
  Hits                 29835    29835           
  Misses                4148     4148           
  Partials               574      574           
Flag Coverage Δ
unittests 86.33% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@felix314159 felix314159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good changes

@danceratopz danceratopz merged commit 55a2dce into ethereum:forks/amsterdam Jan 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-doc Area: documentation A-spec-tests Area: tests for specifications e.g. json_infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants