diff --git a/codespell_ingore_words.txt b/codespell_ingore_words.txt new file mode 100644 index 00000000..47e6e45f --- /dev/null +++ b/codespell_ingore_words.txt @@ -0,0 +1,13 @@ +# This file contains the exact words in code that should be ignore from codespell +nd +ba +activ +Activ +dne +unexpect +hsi +donot +thirdparty +EHR +ehr + diff --git a/run b/run index 4dcfa133..2dab72e9 100755 --- a/run +++ b/run @@ -459,7 +459,7 @@ lint() { run_command isort ${DIR_TO_RUN} || exit_code=1 # Fix python black code formatting issues, run: run_command black ${DIR_TO_RUN} || exit_code=1 - run_command codespell -w -i 3 ${DIR_TO_RUN} -L nd,ba,activ,Activ,dne,unexpect,hsi,donot,thirdparty,EHR,ehr \ + run_command codespell -w -i 3 ${DIR_TO_RUN} --ignore-words codespell_ingore_words.txt \ --skip="*.onnx,*.min.js,*.min.js.map,Contrastive_learning_Notebook.ipynb,./data" || exit_code=1 # Fix cpplint with clang @@ -506,7 +506,7 @@ lint() { echo "Code spelling" run_command codespell $DIR_TO_RUN --skip="*.onnx,*.min.js,*.min.js.map,Contrastive_learning_Notebook.ipynb,./data" \ - -L nd,ba,activ,Activ,dne,unexpect,hsi,donot,thirdparty \ + --ignore-words codespell_ingore_words.txt \ --exclude-file codespell.txt || exit_code=1 echo "Linting CMake"