mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-19 02:13:40 -05:00
build(precommit): add typos checks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
repos:
|
||||
- repo: "https://github.com/commitizen-tools/commitizen"
|
||||
rev: 3.2.2
|
||||
rev: 3.7.0
|
||||
hooks:
|
||||
- id: "commitizen"
|
||||
|
||||
@@ -31,7 +31,7 @@ repos:
|
||||
args: [--markdown-linebreak-ext=md]
|
||||
|
||||
- repo: "https://github.com/adrienverge/yamllint.git"
|
||||
rev: v1.31.0
|
||||
rev: v1.32.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
files: \.(yaml|yml)$
|
||||
@@ -43,6 +43,11 @@ repos:
|
||||
)\.(yaml|yml)$
|
||||
entry: yamllint --strict --config-file .yamllint.yml
|
||||
|
||||
- repo: "https://github.com/crate-ci/typos"
|
||||
rev: v1.16.8
|
||||
hooks:
|
||||
- id: typos
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: vault-pre-commit
|
||||
@@ -50,10 +55,12 @@ repos:
|
||||
entry: scripts/ansible-vault-precommit.sh
|
||||
language: system
|
||||
|
||||
# This calls a custom script. Remove if you don't need it.
|
||||
- id: stopwords
|
||||
name: check stopwords
|
||||
entry: scripts/stopwords.sh
|
||||
name: stopwords
|
||||
entry: bash -c '~/bin/git-stopwords ${PWD}/"$@"'
|
||||
language: system
|
||||
pass_filenames: true
|
||||
|
||||
- id: ansible-lint
|
||||
name: running ansible-lint
|
||||
@@ -68,12 +75,6 @@ repos:
|
||||
files: \.sh\.j2$
|
||||
entry: shellcheck -x --exclude=1009,1054,1056,1072,1073,1083,2001,2148
|
||||
|
||||
- id: "run-shellscripts-bats-tests"
|
||||
name: run bats unit tests
|
||||
language: system
|
||||
files: \.bats$
|
||||
entry: bats -t
|
||||
|
||||
- id: "ansible-encryption-check"
|
||||
name: Ansible Encryption Check
|
||||
language: system
|
||||
|
||||
Reference in New Issue
Block a user