From 783e4b2a1890afee7a6557a27c4e4ea4af3201ee Mon Sep 17 00:00:00 2001 From: prateek-dagar Date: Fri, 7 Aug 2026 12:24:47 +0530 Subject: [PATCH] chore: add codespell and typos pre-commit hooks --- .pre-commit-config.yaml | 13 +++++++++++++ _typos.toml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 _typos.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..e23f5775 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +repos: + - repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell + args: [-L, "statics,vai"] + exclude: ^(langcodes/data/|langcodes/data_dicts\.py|langcodes/language_lists\.py) + + - repo: https://github.com/crate-ci/typos + rev: v1.23.6 + hooks: + - id: typos + exclude: ^(langcodes/data/|langcodes/data_dicts\.py|langcodes/language_lists\.py) diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 00000000..a762b5b1 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,6 @@ +# _typos.toml +# Configuration for typos spell checker + +[default.extend-words] +fre = "fre" +vai = "vai"