From daa66c1db7705a0f5830d1197d11093673656c8e Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Wed, 11 Sep 2024 11:35:55 +0100 Subject: [PATCH] Fix typos --- .pre-commit-config.yaml | 2 +- .typos.toml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .typos.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6594704..35fb4509 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/paddyroddy/.github - rev: v0.220.0 + rev: v0.226.0 hooks: - id: general-hooks - id: python-hooks diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..f6b91354 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,11 @@ +[type.py] +extend-ignore-re = [ + "(?:=|>|<)\\s*color", + "\"(?:color\":\\s\"|ax\":\\s)", + "\\.Center\\(", + "\\w=\"center\"", + "ax(?:s?[,.]\\w|\\s*=\\s*\\w|,|\\[|:\\s\\w)", + "center=\\w", + "color(?:=\"|=\\w|\\.colors\\.|_range)", + "mpl\\.colors\\.", +]