diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt new file mode 100644 index 0000000..a5bf566 --- /dev/null +++ b/.github/linters/codespell.txt @@ -0,0 +1,2 @@ +abov +ot diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6835f7..8015330 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -97,6 +97,14 @@ repos: name: run trailing-whitespace description: trims trailing whitespace args: [--markdown-linebreak-ext=md] + - repo: https://github.com/codespell-project/codespell + rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2 + hooks: + - id: codespell + name: run codespell + description: Check spelling with codespell + args: [--ignore-words=.github/linters/codespell.txt] + exclude: \.svg$|^spatialbench/src/dists\.dss$|^spatialbench/src/q_and_a/answers_sf1\.rs$ - repo: https://github.com/gitleaks/gitleaks rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1 hooks: