Add pre-commit hooks
This commit is contained in:
parent
1cfcc001e5
commit
3e63bed204
14
.pre-commit-config.yaml
Normal file
14
.pre-commit-config.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.4.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-json
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-yaml
|
||||||
|
args:
|
||||||
|
- --allow-multiple-documents
|
||||||
|
- --unsafe
|
||||||
|
- id: end-of-file-fixer
|
@ -8,4 +8,3 @@
|
|||||||
Variables prefixed by `vault_` are available by unlocking the vault with the master password
|
Variables prefixed by `vault_` are available by unlocking the vault with the master password
|
||||||
|
|
||||||
# Basic config
|
# Basic config
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory=./hosts.yml
|
inventory=./hosts.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user