Add pre-commit hooks that lint.

This commit is contained in:
Robert de Bock 2020-09-02 11:35:47 +02:00
parent 29c738c5e4
commit aa0dbcba8e
2 changed files with 6 additions and 0 deletions

4
files/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/sh
yamllint .
ansible-lint

View File

@ -181,6 +181,8 @@
dest: .yamllint
- source: FUNDING.yml
dest: .github/FUNDING.yml
- source: pre-commit
dest: .git/hooks/pre-commit
loop_control:
label: "{{ item.source }}"