Add pre-commit hooks to find empty files and unused variables.

This commit is contained in:
Robert de Bock 2021-01-12 10:41:10 +01:00
parent c3dfba9bfb
commit bad6722e2d

View file

@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@ -18,3 +18,9 @@ repos:
hooks:
- id: ansible-lint
pass_filenames: false
- repo: https://github.com/robertdebock/pre-commit
rev: v1.1.2
hooks:
- id: ansible_role_find_unused_variable
- id: ansible_role_find_empty_files