diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ac17eff..8171948f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,3 +31,14 @@ repos: hooks: # verify github syntaxes - id: check-github-workflows + - repo: https://github.com/codespell-project/codespell + # see setup.cfg + rev: v2.2.4 + hooks: + - id: codespell + args: [--write] + - repo: meta + # see https://pre-commit.com/#meta-hooks + hooks: + - id: check-hooks-apply + - id: check-useless-excludes diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..1b98fa89 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[codespell] +# see https://github.com/codespell-project/codespell#using-a-config-file +ignore-words-list = , +skip = .git