Skip to content

Commit d468f85

Browse files
authored
Merge pull request #755 from yarikoptic/enh-codespell
Add codespell config (to ignore loved "poped") and github workflow to prevent future typos
2 parents cdf5961 + cf90ab2 commit d468f85

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg
3+
# poped - loved variable name
4+
ignore-words-list = poped

.github/workflows/codespell.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
codespell:
13+
name: Check for spelling errors
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Codespell
20+
uses: codespell-project/actions-codespell@v2

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ repos:
3030
"-sn", # Don't display the score
3131
"--rcfile=.pylintrc", # Link to your config file
3232
]
33+
- repo: https://github.com/codespell-project/codespell
34+
rev: v2.2.5
35+
hooks:
36+
- id: codespell

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $ pip install '.[devel]'
3535
$ pre-commit install
3636
```
3737
4. Create a new branch, develop and add tests when possible
38-
5. Run linting & testing before commiting code. Ensure all the hooks are passing.
38+
5. Run linting & testing before committing code. Ensure all the hooks are passing.
3939
```shell
4040
$ pre-commit run --all-files
4141
```

0 commit comments

Comments
 (0)