Skip to content

Add codespell CI with configuration and fix existing typos - #214

Open
yarikoptic wants to merge 4 commits into
evolvingweb:masterfrom
yarikoptic:enh-codespell
Open

yarikoptic wants to merge 4 commits into
evolvingweb:masterfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic

Copy link
Copy Markdown

Add automated spell-checking via codespell and fix 4 existing typos found by it.

Summary

  • .codespellrc — configuration skipping external test fixtures (*/spec/sites/* — ruby-doc.org HTML files), generated/lock files, and CSS; whitelists nd (ordinal suffix in regex like (st|nd|rd|th))
  • .github/workflows/codespell.yml — CI check on push and PRs to master
  • 4 typos fixed: offical→official (INSTALLATION.md), incudes→includes (README.md anchor), containg→containing (config/sitediff.example.yaml), Intialize→Initialize (lib/sitediff/api.rb)

This project has had prior manual typo-fix commits ("Fix typo's in README", "fix typo in readme", "Fix typo in commandline formatting") — this automates catching them going forward.

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

I personally introduced it to over a hundred projects already, mostly with positive feedback
(see the "improveit-dashboard").

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

Test plan

  • codespell passes with zero errors

🤖 Generated with Claude Code and love for typo-free code

yarikoptic and others added 4 commits September 15, 2026 15:06
- Skip */spec/sites/* (external ruby-doc.org HTML fixtures — not our content)
- Skip .git-meta (workflow scratch folder for commit/PR messages)
- Add 'nd' to ignore-words-list (ordinal suffix in regex like (st|nd|rd|th))
- Fix actions/checkout@v6 → @v4 to match project's existing CI convention

Co-Authored-By: Claude Code 2.1.272 / Claude Sonnet 4.6 <noreply@anthropic.com>
- offical -> official (INSTALLATION.md)
- incudes -> includes (README.md anchor #incudes -> #includes)
- containg -> containing (config/sitediff.example.yaml)
- Intialize -> Initialize (lib/sitediff/api.rb)

Co-Authored-By: Claude Code 2.1.272 / Claude Sonnet 4.6 <noreply@anthropic.com>

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "uvx codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
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