Skip to content

Commit

Permalink
Convert check_typo to pre-commit + use maintained version
Browse files Browse the repository at this point in the history
client9/misspell is unmaintained, and has been forked by the golangci
team, see client9/misspell#197 (comment).

They haven't yet added a pre-commit config, so use my fork with the
pre-commit hook config until the pull request is merged.
  • Loading branch information
VannTen committed May 22, 2024
1 parent aab5cdc commit 9f680bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ repos:
- jmespath==1.0.1
- netaddr==1.2.1

- repo: https://github.com/VannTen/misspell
# Waiting on https://github.com/golangci/misspell/pull/19 to get merged
rev: 8592a4e
hooks:
- id: misspell
exclude: "OWNERS_ALIASES$"

- repo: local
hooks:
- id: ansible-syntax-check
Expand Down
12 changes: 0 additions & 12 deletions tests/scripts/check_typo.sh

This file was deleted.

0 comments on commit 9f680bd

Please sign in to comment.