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 =