Use pre-commit.

This commit is contained in:
Robert de Bock 2020-10-29 15:51:30 +01:00
parent 1918370438
commit c826541ba7

20
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,20 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint
args: [-c=.yamllint]
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.3.5
hooks:
- id: ansible-lint
pass_filenames: false