From d1d81a5e9377fc0441e76f7e12d0934daa2d53f4 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 14 Jan 2025 19:44:53 +0000 Subject: [PATCH 1/2] add codespell ignore --- .pre-commit-config.yaml | 6 +++--- codespell-ignore.txt | 0 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 codespell-ignore.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0408883..f754473 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,8 +50,8 @@ repos: types_or: [ python, pyi ] # Checks for spelling mistakes - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.3.0 #TODO latest version 2.3.0 finds a lot of spelling mistakes but fails on "assertIn" hooks: - id: codespell - args: ['--write-changes'] - exclude: \.(svg|pyc|lock|json)$ + args: ["--write-changes","--ignore-words=./codespell-ignore.txt"] + exclude: \.(svg|pyc|lock|json|hrd|pgm)$ diff --git a/codespell-ignore.txt b/codespell-ignore.txt new file mode 100644 index 0000000..e69de29 From bdb63223ec8f7b52900124052ac6514c1427b7c3 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 14 Jan 2025 19:46:15 +0000 Subject: [PATCH 2/2] add codespell ignore --- .pre-commit-config.yaml | 2 +- codespell-ignore.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f754473..ae2c7df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,7 +50,7 @@ repos: types_or: [ python, pyi ] # Checks for spelling mistakes - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 #TODO latest version 2.3.0 finds a lot of spelling mistakes but fails on "assertIn" + rev: v2.3.0 hooks: - id: codespell args: ["--write-changes","--ignore-words=./codespell-ignore.txt"] diff --git a/codespell-ignore.txt b/codespell-ignore.txt index e69de29..bf52b4c 100644 --- a/codespell-ignore.txt +++ b/codespell-ignore.txt @@ -0,0 +1 @@ +assertIn