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

Skip to content

Commit cfdd64d

Browse files
Add codespell to CI to catch typos early
1 parent 6c068e2 commit cfdd64d

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/codespell_ignore_words.txt

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