From bfa443879a996a6a6a3cc18236d2b41f032adf53 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 15 Sep 2021 12:33:16 +0200 Subject: [PATCH] Configure codespell optimally Co-authored-by: Thomas J. Fan --- build_tools/codespell_ignore_words.txt | 45 ++++++++++++++++++++++++++ setup.cfg | 4 +++ 2 files changed, 49 insertions(+) create mode 100644 build_tools/codespell_ignore_words.txt diff --git a/build_tools/codespell_ignore_words.txt b/build_tools/codespell_ignore_words.txt new file mode 100644 index 0000000000000..fbe501d04f29f --- /dev/null +++ b/build_tools/codespell_ignore_words.txt @@ -0,0 +1,45 @@ +aggresive +aline +ba +basf +boun +bre +cach +complies +coo +copys +deine +didi +feld +fo +fpr +fro +fwe +gool +hart +hist +ines +inout +ist +jaques +linke +lod +mape +mor +nd +nmae +ocur +pullrequest +ro +soler +suh +suprised +te +technic +teh +thi +usal +vie +wan +winn +yau diff --git a/setup.cfg b/setup.cfg index 050045072f428..823d6b1e55266 100644 --- a/setup.cfg +++ b/setup.cfg @@ -71,3 +71,7 @@ ignore = sklearn/utils/_seq_dataset.pxd sklearn/utils/_weight_vector.pyx sklearn/utils/_weight_vector.pxd + +[codespell] +skip = ./.git,./.mypy_cache,./doc/themes/scikit-learn-modern/static/js,./sklearn/feature_extraction/_stop_words.py,./doc/_build,./doc/auto_examples,./doc/modules/generated +ignore-words = build_tools/codespell_ignore_words.txt