Skip to content

Commit 36f0bad

Browse files
abrookinsclaude
andcommitted
Add spellchecker to pre-commit hooks
Adds typos spellchecker to catch common spelling errors while respecting project-specific terminology like LangChain async method names and gitignore patterns. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e361d4d commit 36f0bad

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ repos:
1515
- id: end-of-file-fixer
1616
- id: check-yaml
1717
- id: check-added-large-files
18+
19+
- repo: https://github.com/crate-ci/typos
20+
rev: v1.16.26
21+
hooks:
22+
- id: typos
23+
args: [--config, _typos.toml]

_typos.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[default.extend-words]
2+
# LangChain async method names - not typos
3+
aadd = "aadd"
4+
# Gitignore patterns - not typos
5+
nclude = "nclude"
6+
7+
[files]
8+
extend-exclude = ["tests/fixtures/"]

0 commit comments

Comments
 (0)