diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..3bc55993a8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,21 @@ +[tool.codespell] +count = "" +ignore-regex = '\b[A-Z]{3}\b' +ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,numer,technic,ure" +quiet-level = 3 +skip = """ +*/build*,\ +./.git,\ +./drivers/cc3100,\ +./lib,\ +./ports/cc3200/FreeRTOS,\ +./ports/cc3200/bootmgr/sl,\ +./ports/cc3200/hal,\ +./ports/cc3200/simplelink,\ +./ports/cc3200/telnet,\ +./ports/nrf/drivers/bluetooth/s1*,\ +./ports/renesas-ra,\ +./ports/stm32/usbhost,\ +./tests,\ +ACKNOWLEDGEMENTS,\ +""" diff --git a/tools/ci.sh b/tools/ci.sh index d44f341cef..0eb94b3399 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -28,6 +28,17 @@ function ci_code_formatting_run { tools/codeformat.py -v } +######################################################################################## +# code spelling + +function ci_code_spell_setup { + pip3 install codespell tomli +} + +function ci_code_spell_run { + codespell +} + ######################################################################################## # commit formatting