Skip to content

Add codespell support with configuration and fixes#25

Open
yarikoptic wants to merge 4 commits into
postalserver:mainfrom
yarikoptic:enh-codespell
Open

Add codespell support with configuration and fixes#25
yarikoptic wants to merge 4 commits into
postalserver:mainfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic
Copy link
Copy Markdown

Add codespell configuration, CI, and fix existing typos.

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

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

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

Changes

Configuration & Infrastructure

  • Added .codespellrc with a minimal skip list (.git, .gitignore, .gitattributes, .codespellrc) and check-hidden = true.
  • Added ignore-regex = https?://\S+ so codespell does not "fix" URLs that contain typos (rewriting them would break links).
  • Added .github/workflows/codespell.yml running codespell-project/actions-codespell@v2.2 on push/PR to main. Permissions are pinned to contents: read.

Typo Fixes

Three small, unambiguous fixes (applied via codespell -w, recorded with datalad run):

  • README.md: Instralling -> Installing (section heading)
  • bin/postal: verison -> version (×2, in a status message and a comment)

Verification

codespell exits cleanly (0 errors) on the current tree.

Commits on this branch
  • d72ab7a Add GitHub Actions workflow for codespell on main
  • fae5f99 Add rudimentary codespell config
  • 86cf2ea [DATALAD RUNCMD] chore: run codespell throughout fixing few left typos automagically
  • 3bc59e0 codespell: protect URLs via ignore-regex

Generated with the assistance of Claude Code.

yarikoptic and others added 4 commits May 28, 2026 17:36
…s automagically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
URLs should not be "fixed" even if they contain typos, since rewriting
them breaks links. Add `ignore-regex = https?://\S+` so codespell skips
anything that looks like an http(s) URL.

Co-Authored-By: Claude Code 2.1.154 / Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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