Skip to content

Commit b30f2fc

Browse files
committed
Add codespell to pre-commit and CI
1 parent 2f4a031 commit b30f2fc

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
ignore-words-list = Ege, Ned

.github/workflows/lint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ jobs:
1616
with:
1717
python-version: "3.x"
1818
- uses: pre-commit/action@v3.0.1
19+
20+
codespell:
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 10
23+
24+
steps:
25+
- uses: codespell-project/actions-codespell@v2

.pre-commit-config.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/psf/black-pre-commit-mirror
3-
rev: 24.4.2
3+
rev: 25.1.0
44
hooks:
55
- id: black
66

77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.6.0
8+
rev: v5.0.0
99
hooks:
1010
- id: check-case-conflict
1111
- id: check-merge-conflict
@@ -14,10 +14,15 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/sphinx-contrib/sphinx-lint
17-
rev: v0.9.1
17+
rev: v1.0.0
1818
hooks:
1919
- id: sphinx-lint
2020

21+
- repo: https://github.com/codespell-project/codespell
22+
rev: v2.4.1
23+
hooks:
24+
- id: codespell
25+
2126
- repo: meta
2227
hooks:
2328
- id: check-hooks-apply

0 commit comments

Comments
 (0)