Skip to content

Commit

Permalink
Adding codespell to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Aug 15, 2023
1 parent f137705 commit 51abc61
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ repos:
- id: trailing-whitespace
# ensure syntaxes are valid
- id: check-yaml
- id: check-json
# catch git merge/rebase problems
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
hooks:
- id: prettier
types: [ts]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
Expand All @@ -29,3 +23,14 @@ repos:
- id: check-github-actions
files: .*/action.(yml|yaml)$
- id: check-dependabot
- repo: https://github.com/codespell-project/codespell
# see setup.cfg
rev: v2.2.4
hooks:
- id: codespell
args: [--write]
- repo: meta
# see https://pre-commit.com/#meta-hooks
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
# see https://github.com/codespell-project/codespell#using-a-config-file
ignore-words-list = ,
skip = .git

0 comments on commit 51abc61

Please sign in to comment.