mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-28 16:48:30 -05:00
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:
32
.codespell-ignore-words.txt
Normal file
32
.codespell-ignore-words.txt
Normal 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
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user