diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b1694c..99a6585 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,12 @@ repos: (?x)( ^docs/source/conf.py$ ) + - repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell + additional_dependencies: [".[toml]"] + stages: [commit, push, manual] - repo: local hooks: - id: pylint diff --git a/docs/source/spelling_wordlist.txt b/docs/source/spelling_wordlist.txt index a331ba4..eb9fe73 100644 --- a/docs/source/spelling_wordlist.txt +++ b/docs/source/spelling_wordlist.txt @@ -138,3 +138,5 @@ submodules namespace noqa uptime +ot +oT diff --git a/pyproject.toml b/pyproject.toml index 5685bad..5829af9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,9 @@ multi_line_output = 3 convention = "google" match-dir = '^(?!(gui|callbacks|docs))[^\.].*' +[tool.codespell] +ignore-words = "docs/source/spelling_wordlist.txt" + [tool.ruff] target-version = "py37" line-length = 100