mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
[PR #1215] [MERGED] Centralize codespell config and add 1 more fix #1178
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1215
Author: @yarikoptic
Created: 3/7/2026
Status: ✅ Merged
Merged: 3/18/2026
Merged by: @profvjreddi
Base:
main← Head:enh-codespell📝 Commits (3)
fa1130dAdd github action to codespell main on push and PRs966990bAdd rudimentary codespell config408c0a1Consolidate codespell config into pyproject.toml for standalone use📊 Changes
5 files changed (+46 additions, -43 deletions)
View changed files
➖
.codespell-ignore-words.txt(+0 -39)➕
.github/workflows/codespell.yml(+23 -0)📝
.pre-commit-config.yaml(+4 -3)📝
book/quarto/filters/inject_quizzes.lua(+1 -1)📝
pyproject.toml(+18 -0)📄 Description
Made codespell to be usable standalone and aggregated and expanded its config.
Also found/fixed 1 extra typo
Changes
Configuration & Infrastructure
fa1130d76Add github action to codespell main on push and PRs966990b97Add rudimentary codespell config408c0a13cConsolidate 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.