Skip to content

Conversation

@yarikoptic
Copy link

Add codespell configuration and fix existing typos.

More about codespell: https://github.com/codespell-project/codespell

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

Changes

Configuration & Infrastructure

  • Added .codespellrc configuration with comprehensive skip patterns
  • Created GitHub Actions workflow to check spelling on push and PRs to main branch
  • Configured to skip:
    • .git* - version control
    • *.pdf, *.svg, *.css - binary and generated files
    • .npm, .cache - local cache directories
    • */vendor/*, */build/* - vendored code and build artifacts

Domain-Specific Whitelist

Added legitimate terms that codespell flags as typos:

  • halp - variable name for help parameter (used throughout program.py)
  • welp - intentional test data key name (used in test fixtures)
  • tye - person's name (Tye Wang) in changelog

I recalled that I once looked at doing my codespell'ing but never got to it ... now -- here we go! ;)

Typo Fixes

9 typos fixed in 6 files (all in comments and documentation strings):

  • procotolprotocol (invoke/config.py:119)
  • pre-emptivelypreemptively (invoke/config.py:363)
  • whchwhich (invoke/runners.py:1373)
  • pre-emptingpreempting (sites/docs/concepts/watchers.rst:12)
  • impoveimprove (sites/www/changelog.rst:60)
  • Pre-emptivelyPreemptively (sites/www/changelog.rst:333)
  • refrencesreferences (tests/config.py:1077)
  • stilstill (tests/config.py:1097)
  • explicityexplicitly (tests/program.py:279)

All fixes are in comments and documentation strings, with no functional code changes.

Additional Improvement

  • Added .npm to .gitignore (local npm cache directory that should not be tracked)

Historical Context

This project has had 15 prior commits fixing typos manually, demonstrating the value of automated spell-checking.

Testing

✅ Codespell passes with zero errors after all fixes


🤖 Generated with Claude Code

- halp: variable name for help parameter
- welp: intentional test data key name
- tye: person's name (Tye Wang) in changelog
Fixed typos:
- procotol -> protocol (invoke/config.py:119)
- pre-emptively -> preemptively (invoke/config.py:363)
- whch -> which (invoke/runners.py:1373)
- pre-empting -> preempting (sites/docs/concepts/watchers.rst:12)
- impove -> improve (sites/www/changelog.rst:60)
- Pre-emptively -> Preemptively (sites/www/changelog.rst:333)
- refrences -> references (tests/config.py:1077)
- stil -> still (tests/config.py:1097)
- explicity -> explicitly (tests/program.py:279)
.npm is a local npm cache directory that should not be tracked
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