Skip to content

fix codespell config silently skipping all files#753

Merged
ajslater merged 1 commit into
developfrom
claude/stoic-banach-f2e813
May 9, 2026
Merged

fix codespell config silently skipping all files#753
ajslater merged 1 commit into
developfrom
claude/stoic-banach-f2e813

Conversation

@ajslater
Copy link
Copy Markdown
Owner

@ajslater ajslater commented May 9, 2026

Summary

  • The .* glob in [tool.codespell].skip was matching every walked path (because os.walk('.') prefixes paths with ./), so make lint was silently scanning nothing while nvim per-file checks still surfaced real typos.
  • Replaces .* with explicit hidden-dir paths (./.claude,./.git,./.github,./.venv), switches well-known names (node_modules, bun.lock, package.json, coverage, test-results, uv.lock) to basename patterns so they skip correctly from any working directory, and fixes a /uv.lock typo.
  • Wires codespell into frontend/bin/lint.sh (sharing the parent's config via --toml ../pyproject.toml) so frontend code gets spell-checked as part of the frontend lint pass.
  • Adds legitimate technical terms surfaced once codespell started actually running: wan (network), crate (Rust), iff ("if and only if" in docstrings), ser/Ser (test fixture abbrev for Series), assertin (assertIn unittest method), browseable, doubleclick, re-use, re-using, pre-selected, warmup.
  • Fixes one real typo uncovered: secifiesspecifies in codex/views/opds/v2/progression.py.

Test plan

  • bin/lint-python.sh exits 0 on develop's content
  • frontend/bin/lint.sh exits 0
  • Confirmed codespell . from project root and codespell --toml ../pyproject.toml . from frontend/ both find typos when present and pass cleanly otherwise

🤖 Generated with Claude Code

The `.*` glob in `[tool.codespell].skip` matched every walked path
because `os.walk('.')` prefixes paths with `./`, so codespell scanned
nothing during `make lint` while nvim per-file checks still flagged
typos. Replace `.*` with explicit hidden-dir paths, fix the
`/uv.lock` typo, and add legitimate technical terms (wan, crate, iff,
ser, etc.) to ignore-words-list.

Also wire codespell into the frontend lint script so frontend code
gets spell-checked too, and fix one real typo uncovered (secifies →
specifies in opds/v2/progression.py).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ajslater ajslater merged commit 2957e79 into develop May 9, 2026
3 checks passed
@ajslater ajslater deleted the claude/stoic-banach-f2e813 branch May 11, 2026 00:10
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