Skip to content

Commit e15576c

Browse files
committed
pre-commit: add codespell
Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
1 parent 25e6086 commit e15576c

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ repos:
5858
- types-PyYAML
5959
- types-requests
6060

61+
- repo: https://github.com/codespell-project/codespell
62+
rev: v2.4.1
63+
hooks:
64+
- id: codespell
65+
name: Check spelling with codespell
66+
6167
- repo: meta
6268
hooks:
6369
- id: check-hooks-apply

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ line-length = 79
33
skip-string-normalization = true
44
target-version = ["py313"]
55

6+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
7+
[tool.codespell]
8+
check-hidden = true
9+
# ignore-regex = ""
10+
ignore-words-list = "subtile"
11+
612
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
713
# requires Flake8-pyproject
814
[tool.flake8]

0 commit comments

Comments
 (0)