Skip to content

Commit

Permalink
Github workflow only suggests the spelling and not fail the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vara Bonthu <[email protected]>
  • Loading branch information
vara-bonthu committed May 16, 2024
1 parent df6dda9 commit b06578e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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"]
- id: codespell
args: ["--skip=*.excalidraw,*.git,*.png,*.jpg,*.svg,go.sum,go.mod"]

0 comments on commit b06578e

Please sign in to comment.