From b06578e79321f2de3e1b58dac2185bcb8795a87b Mon Sep 17 00:00:00 2001 From: Vara Bonthu Date: Thu, 16 May 2024 07:56:49 -0700 Subject: [PATCH] Github workflow only suggests the spelling and not fail the tests Signed-off-by: Vara Bonthu --- .github/workflows/codespell.yaml | 3 ++- .pre-commit-config.yaml | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml index 0623e391..1a2b741f 100644 --- a/.github/workflows/codespell.yaml +++ b/.github/workflows/codespell.yaml @@ -23,4 +23,5 @@ jobs: with: check_filenames: true # When using this Action in other repos, the --skip option below can be removed - skip: "*.excalidraw,*.git,*.png,*.jpg,*.svg" \ No newline at end of file + skip: "*.excalidraw,*.git,*.png,*.jpg,*.svg,go.mod,go.sum" + continue-on-error: true # The PR checks will not fail, but the possible spelling issues will still be reported for review and correction \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67eb5147..b54b89b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,11 @@ +# For more information, visit: https://pre-commit.com +# To run locally: +# 1. Install pre-commit: pip install pre-commit +# 2. Run pre-commit checks on all files: pre-commit run --all-files + repos: - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: - - id: codespell - args: ["--skip=*.excalidraw", "--write-changes"] \ No newline at end of file + - id: codespell + args: ["--skip=*.excalidraw,*.git,*.png,*.jpg,*.svg,go.sum,go.mod"] \ No newline at end of file