From ef07a2b7fc3a7e393648c21e956bb77feaaac4e3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Feb 2024 10:51:13 +0100 Subject: [PATCH 1/4] Setup pre-commit to run codespell Eat our own dogfood... --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2dfc3bb --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + additional_dependencies: + - tomli From 85a326adc9456f836b85e298b40bb73c3a2cdcc9 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Feb 2024 10:55:50 +0100 Subject: [PATCH 2/4] codespell --skip="abandonned,ackward,bu" --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2dfc3bb..493e227 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,5 +3,6 @@ repos: rev: v2.2.6 hooks: - id: codespell + args: [--skip, "abandonned,ackward,bu"] additional_dependencies: - tomli From af3ab4c8fe5bfdd43f3048300dfed8c76740f21b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Feb 2024 10:58:06 +0100 Subject: [PATCH 3/4] codespell --ignore-words-list="abandonned,ackward,bu" --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 493e227..927bd3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,6 @@ repos: rev: v2.2.6 hooks: - id: codespell - args: [--skip, "abandonned,ackward,bu"] + args: [--ignore-words-list, "abandonned,ackward,bu"] additional_dependencies: - tomli From bcb3cd56b17d9e02504ffcd454dd73c346f65e60 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Feb 2024 11:00:46 +0100 Subject: [PATCH 4/4] Update testing.yml --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 097f442..62ca0bf 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -64,7 +64,7 @@ jobs: check_filenames: true check_hidden: true # When using this Action in other repos, the --skip option below can be removed - skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml + skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml,./.pre-commit-config.yaml # Check our README (and this workflow) ignoring the two intentional typos - uses: ./ with: