8000 Add codespell to CI to catch typos early · scikit-learn/scikit-learn@d98d3e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d98d3e9

Browse files
Add codespell to CI to catch typos early
1 parent e409451 commit d98d3e9

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

.github/codespell_ignore_words.txt

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
aline
2+
ba
3+
basf
4+
boun
5+
bre
6+
cach
7+
complies
8+
coo
9+
copys
10+
deine
11+
fo
12+
fpr
13+
fro
14+
fwe
15+
gool
16+
hart
17+
hist
18+
ines
19+
inout
20+
ist
21+
jaques
22+
lod
23+
mape
24+
mor
25+
nmae
26+
nd
27+
ocur
28+
pullrequest
29+
ro
30+
soler
31+
te
32+
technic
33+
teh
34+
thi
35+
usal
36+
winn
37+
yau

.github/workflows/codespell.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
codespell:
12+
name: Check for spelling errors
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: codespell-project/actions-codespell@master

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ ignore =
7171
sklearn/utils/_seq_dataset.pxd
7272
sklearn/utils/_weight_vector.pyx
7373
sklearn/utils/_weight_vector.pxd
74+
75+
[codespell]
76+
skip = js,v*.rst,_stop_words.py
77+
ignore-words = .github/codespell_ignore_words.txt

0 commit comments

Comments
 (0)
0