Skip to content

Commit f866931

Browse files
committed
🔧 Add codespell
1 parent 2bd0a89 commit f866931

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ repos:
1515
- id: check-json
1616
types: [file] # override `types: [json]`
1717
files: \.(json|ipynb)$
18+
- repo: https://github.com/sphinx-contrib/sphinx-lint
19+
rev: v1.0.0
20+
hooks:
21+
- id: sphinx-lint
22+
types: [rst]
1823
- repo: https://github.com/pycqa/isort
1924
rev: 5.13.2
2025
hooks:
@@ -26,18 +31,18 @@ repos:
2631
rev: 24.4.2
2732
hooks:
2833
- id: black
29-
- repo: https://github.com/sphinx-contrib/sphinx-lint
30-
rev: v1.0.0
31-
hooks:
32-
- id: sphinx-lint
33-
types: [rst]
3434
- repo: https://github.com/adamchainz/blacken-docs
3535
rev: "1.18.0"
3636
hooks:
3737
- id: blacken-docs
3838
args: [--line-length=79]
3939
additional_dependencies:
4040
- black
41+
- repo: https://github.com/codespell-project/codespell
42+
rev: v2.3.0
43+
hooks:
44+
- id: codespell
45+
args: [--toml pyproject.toml]
4146
- repo: local
4247
hooks:
4348
- id: linkcheck

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ docs = [
3131
dev = [
3232
"pyviz-tutorial[docs]",
3333
"pre-commit",
34+
"codespell",
3435
]
3536

3637
[project.urls]
@@ -39,3 +40,7 @@ dev = [
3940

4041
[tool.setuptools]
4142
packages = []
43+
44+
45+
[tool.codespell]
46+
skip = "*.ipynb, ./docs/_build/*"

0 commit comments

Comments
 (0)