From 62ec15bf58afe54e7f2f42ee47f6cc9fd333373a Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Mon, 29 Jul 2024 14:00:04 +0300 Subject: [PATCH] Add `typos` to `pre-commit` --- .pre-commit-config.yaml | 4 ++++ _typos.toml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 _typos.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c3da3a..07e64d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,3 +39,7 @@ repos: language: system types: [python] require_serial: true + - repo: https://github.com/crate-ci/typos + rev: v1.23.5 + hooks: + - id: typos diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..a97353f --- /dev/null +++ b/_typos.toml @@ -0,0 +1,5 @@ +[default] +extend-ignore-identifiers-re = ["ND"] + +[files] +extend-exclude = ["mwrpy/site_config/", "tests/data/"]