From b5ab6360aa64fc3b0f9243f25d8849b82ade352e Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 21 Jun 2026 06:17:20 +1000 Subject: [PATCH] [CI] Add codespell pre-commit hook --- .github/linters/codespell.txt | 2 ++ .pre-commit-config.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 .github/linters/codespell.txt 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: