Centralize codespell config and add 1 more fix#1215
Open
yarikoptic wants to merge 3 commits intoharvard-edge:mainfrom
Open
Centralize codespell config and add 1 more fix#1215yarikoptic wants to merge 3 commits intoharvard-edge:mainfrom
yarikoptic wants to merge 3 commits intoharvard-edge:mainfrom
Conversation
Refactor codespell setup so `codespell` (or `uvx codespell`) works standalone without relying on pre-commit args or separate ignore files. Config changes: - Expanded skip patterns: *.bib (author names), *.png (embedded text), *.scss, _extensions (third-party Quarto code), socratiQ (bundled JS), build outputs (_site, _book, htmlcov), caches (.cache, .npm) - Added ignore-regex for camelCase/PascalCase identifiers and URLs - Added documented ignore-words-list for legitimate terms (contributor names, abbreviations, TikZ labels, domain terms) - Removed .codespell-ignore-words.txt (had merge conflict markers; contents merged into pyproject.toml) Relaxed exclusions (no longer blanket-skipped): - *.json (only .all-contributorsrc skipped now) - *.js (only socratiQ skipped now) - *.tex (only _extensions skipped now) Pre-commit: removed custom args/exclude overrides, bumped to v2.4.1, now uses pyproject.toml config via tomli dependency. Typo fix: akumulators → accumulators (inject_quizzes.lua comment) Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made codespell to be usable standalone and aggregated and expanded its config.
Also found/fixed 1 extra typo
Changes
Configuration & Infrastructure
Add github action to codespell main on push and PRsAdd rudimentary codespell configConsolidate codespell config into pyproject.toml for standalone useWhat the consolidated config does
codespelloruvx codespellstandalone.codespell-ignore-words.txt(had merge conflict markers; contents merged into pyproject.toml)Skip patterns
*.bib(author surnames cause false positives),*.png(embedded text),*.scss_extensions(third-party Quarto extension code with German variable names)socratiQ(bundled JS), build outputs (_site,_book,htmlcov), caches (.cache,.npm)Exclusions relaxed vs old pre-commit config
*.json— only.all-contributorsrcskipped now (not all JSON)*.js— onlysocratiQskipped now (not all JS)*.tex— only_extensionsskipped now (not all TeX)Ignore patterns
ALine,LineZ,localY)Typo fix
akumulators→accumulatorsininject_quizzes.luaTesting
✅
uvx codespellpasses with zero errors🤖 Generated with Claude Code