Initial commit for pre-commit-hooks

* run 'pre-commit run --all-files' to setup/test the pre-commit hooks
This commit is contained in:
Ben Vincent 2023-06-18 20:19:00 +10:00
parent 284f3ff7ed
commit f769d1df50

24
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,24 @@
repos:
- repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git'
rev: v2.2.0
hooks:
- id: bolt-validate
- id: epp-validate
- id: erb-validate
- id: puppet-lint
args:
- --no-80chars-check
- --no-documentation-check
- --no-puppet_url_without_modules-check
- --fail-on-warnings
- id: puppet-validate
- id: ruby-validate
- repo: 'https://github.com/jumanjihouse/pre-commit-hooks'
rev: 3.0.0
hooks:
- id: reek
- id: rubocop
- repo: 'https://github.com/adrienverge/yamllint'
rev: v1.32.0
hooks:
- id: 'yamllint'