From 5394ce47703110f488300624f3ed90499334854b Mon Sep 17 00:00:00 2001 From: Mats Kindahl Date: Thu, 11 Apr 2024 08:34:23 +0200 Subject: [PATCH] Use ignore words file with codespell It is not possible to automatically backport pull requests that makes modifications to workflow files and since the codespell action has a hard-coded list of ignored words as options, this means that any changes to the ignored codespell words cannot be backported. This pull request fixes this by using a ignore words file instead, which means that adding new words does not require changing a workflow file and hence the pull requests can be automatically backported. --- .github/codespell-ignore-words | 4 ++++ .github/workflows/code_style.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .github/codespell-ignore-words diff --git a/.github/codespell-ignore-words b/.github/codespell-ignore-words new file mode 100644 index 00000000000..e37f1a32e79 --- /dev/null +++ b/.github/codespell-ignore-words @@ -0,0 +1,4 @@ +brin +inh +larg +inout diff --git a/.github/workflows/code_style.yaml b/.github/workflows/code_style.yaml index b1b349a9021..9bd5397affa 100644 --- a/.github/workflows/code_style.yaml +++ b/.github/workflows/code_style.yaml @@ -66,7 +66,7 @@ jobs: - name: Run codespell run: | find . -type f \( -name "*.c" -or -name "*.h" -or -name "*.yaml" -or -name "*.sh" \) \ - -exec codespell -L "brin,inh,larg,inout" {} \+ + -exec codespell -I .github/codespell-ignore-words {} \+ cc_checks: name: Check code formatting