fix: update codespell config to ignore false positives

- Exclude minified JS files (bundle.js, *.min.js) from spelling checks
- Exclude .bib files from end-of-file-fixer (bibtex-tidy handles them)
- Add ignore words for: variable names (currentY, initialY), Python
  methods (assertIn), acronyms (SER, ALS), and valid technical terms
- Skip .tex files from codespell
This commit is contained in:
Vijay Janapa Reddi
2025-12-14 10:23:40 -05:00
parent 9f9b20600c
commit 0484c68add
2 changed files with 36 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
heros
fith
curren
aline
gage
akumulators
ans
titel
socio
ser
currenty
initialy
assertin
mor
dota
appen
multline
ource
bu
sting
te
crossreference
linez
als
fo
listin
nam
ture
handlin
panting
occurence
socio-economic

View File

@@ -25,7 +25,8 @@ repos:
exclude: "^(_site/|_book/|node_modules/)"
- id: end-of-file-fixer
name: "Global: Fix end of file newlines"
exclude: "^(_site/|_book/|node_modules/)"
# Exclude .bib files as bibtex-tidy handles them separately
exclude: "^(_site/|_book/|node_modules/)|.*\\.bib$"
- id: check-json
name: "Global: Validate JSON syntax"
- id: check-yaml
@@ -37,8 +38,8 @@ repos:
hooks:
- id: codespell
name: "Global: Check for common misspellings"
args: ["--skip", "*.json,*.bib,_site,_book,node_modules,.venv,htmlcov", "--ignore-words-list", "heros,fith,curren"]
exclude: "^(_site/|_book/|htmlcov/)"
args: ["--skip", "*.json,*.bib,*.min.js,*.tex,_site,_book,node_modules,.venv,htmlcov,bundle.js,glightbox.min.js", "--ignore-words", ".codespell-ignore-words.txt"]
exclude: "^(_site/|_book/|htmlcov/|.*bundle\\.js$|.*\\.min\\.js$)"
# ===========================================================================
# SECTION 2: BOOK HOOKS (quarto content validation)