From a2c0323f395f5ef2e99894fdc3f57314b9bd3c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 3 Aug 2022 10:46:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20codespell=20to=20pre-commi?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As suggested in #4603 --- .codespell_ignore_words | 4 ++++ .pre-commit-config.yaml | 4 ++++ setup.cfg | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 .codespell_ignore_words diff --git a/.codespell_ignore_words b/.codespell_ignore_words new file mode 100644 index 000000000..ff8047339 --- /dev/null +++ b/.codespell_ignore_words @@ -0,0 +1,4 @@ +managable +commitish +matchs +medias diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0473115c8..9118506e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,3 +67,7 @@ repos: - eslint-plugin-cypress@2.11.2 files: \.js$ exclude: ^(src/octoprint/vendor/|tests/static/js/lib|tests/util/_files|docs/|scripts/|translations/) + - repo: https://github.com/codespell-project/codespell + rev: v2.1.0 + hooks: + - id: codespell diff --git a/setup.cfg b/setup.cfg index 4b5d8f589..552e134b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,3 +33,9 @@ known_first_party = octoprint octoprint_setuptools octoprint_client + +[codespell] +skip = *.po,*.min.js,.git,*/vendor,*/lib,*/bootstrap,*/node_modules,*/translations,*/venv*,*/.*,*/build,*/_build,setup.cfg,AUTHORS.md +ignore-words = .codespell_ignore_words +quiet-level = 3 +count =