From 1f34ce7ea2608f102579d88f9cd9d3810428f088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Mon, 27 Jan 2025 21:58:06 +0545 Subject: [PATCH] use codespell pre-commit hook Also removes codespell job, as lint job already runs pre-commit hook which will now run codespell. --- .github/workflows/codespell.yml | 19 ------------------- .pre-commit-config.yaml | 4 ++++ 2 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index d5cf40f6d..000000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Codespell - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - codespell: - name: Check for spelling errors - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Codespell - uses: codespell-project/actions-codespell@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acd9fa040..39640d0f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,7 @@ repos: args: [ --fix, "--show-fixes"] - id: ruff-format types_or: [python] + - repo: https://github.com/codespell-project/codespell + rev: v2.4.0 + hooks: + - id: codespell