From 22922c8dae814091f291b10b0cfdcdf3ffea4999 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Sat, 16 Nov 2024 13:11:57 +0000 Subject: [PATCH] fix codespell --- .pre-commit-config.yaml | 5 +++-- codespell-ignore.txt | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 codespell-ignore.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92c0cf07..9a2ba27f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,11 +56,12 @@ repos: 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'] + args: ['--write-changes','--skip=index.html',"--ignore-words=./codespell-ignore.txt"] exclude: \.(svg|pyc|lock|json)$ + # - repo: https://github.com/compilerla/conventional-pre-commit # rev: v3.0.0 # hooks: # - id: conventional-pre-commit # stages: [commit-msg] - # args: [] \ No newline at end of file + # args: [] diff --git a/codespell-ignore.txt b/codespell-ignore.txt new file mode 100644 index 00000000..765f0128 --- /dev/null +++ b/codespell-ignore.txt @@ -0,0 +1,2 @@ +assertIn +ND \ No newline at end of file