From e7410b56c0419b586f6a6d123e936b0589851270 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 24 Jan 2025 22:02:25 +1000 Subject: [PATCH] Standardize the pre-commit config https://github.com/codespell-project/codespell?tab=readme-ov-file#pre-commit-hook --- codespell.txt => .github/linters/codespell.txt | 0 .github/workflows/linter.yml | 2 +- .pre-commit-config.yaml | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename codespell.txt => .github/linters/codespell.txt (100%) diff --git a/codespell.txt b/.github/linters/codespell.txt similarity index 100% rename from codespell.txt rename to .github/linters/codespell.txt diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 784df0cf03..49113814bf 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -29,7 +29,7 @@ concurrency: jobs: pre-commit: name: Run pre-commit - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Check Out uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1eedf4c68..7bab1d4fea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,6 +30,6 @@ repos: hooks: - id: codespell name: run codespell - description: Check spelling with codespell - entry: codespell --ignore-words=codespell.txt + description: check spelling with codespell + args: [--ignore-words=.github/linters/codespell.txt] exclude: ^extras/