Skip to content

Commit d77c35f

Browse files
committed
tools/ci.sh: Add functions to check code spelling using codespell.
Signed-off-by: Damien George <[email protected]> tools/ci.sh: Explicitly specify pyproject.toml. Signed-off-by: Damien George <[email protected]> tools/ci.sh: Import tomli. Signed-off-by: Damien George <[email protected]>
1 parent 07a719a commit d77c35f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

pyproject.toml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tool.codespell]
2+
count = ""
3+
ignore-regex = '\b[A-Z]{3}\b'
4+
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,numer,technic,ure"
5+
quiet-level = 3
6+
skip = """
7+
*/build*,\
8+
./.git,\
9+
./drivers/cc3100,\
10+
./lib,\
11+
./ports/cc3200/FreeRTOS,\
12+
./ports/cc3200/bootmgr/sl,\
13+
./ports/cc3200/hal,\
14+
./ports/cc3200/simplelink,\
15+
./ports/cc3200/telnet,\
16+
./ports/nrf/drivers/bluetooth/s1*,\
17+
./ports/renesas-ra,\
18+
./ports/stm32/usbhost,\
19+
./tests,\
20+
ACKNOWLEDGEMENTS,\
21+
"""

tools/ci.sh

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ function ci_code_formatting_run {
2828
tools/codeformat.py -v
2929
}
3030

31+
########################################################################################
32+
# code spelling
33+
34+
function ci_code_spell_setup {
35+
pip3 install codespell tomli
36+
}
37+
38+
function ci_code_spell_run {
39+
codespell
40+
}
41+
3142
########################################################################################
3243
# commit formatting
3344

0 commit comments

Comments
 (0)