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"