mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Convert check_typo to pre-commit + use maintained version
client9/misspell is unmaintained, and has been forked by the golangci team, see https://github.com/client9/misspell/issues/197#issuecomment-1596318684. 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.
This commit is contained in:
@@ -45,6 +45,13 @@ repos:
|
|||||||
- jmespath==1.0.1
|
- jmespath==1.0.1
|
||||||
- netaddr==1.2.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
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-syntax-check
|
- id: ansible-syntax-check
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# cd to the root directory of kubespray
|
|
||||||
cd $(dirname $0)/../../
|
|
||||||
|
|
||||||
rm ./misspell*
|
|
||||||
|
|
||||||
set -e
|
|
||||||
wget https://github.com/client9/misspell/releases/download/v0.3.4/misspell_0.3.4_linux_64bit.tar.gz
|
|
||||||
tar -zxvf ./misspell_0.3.4_linux_64bit.tar.gz
|
|
||||||
chmod 755 ./misspell
|
|
||||||
git ls-files | grep -v OWNERS_ALIASES | xargs ./misspell -error
|
|
||||||
Reference in New Issue
Block a user