From f769d1df50eaf31327a16d512e5c709473f52dbb Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 18 Jun 2023 20:19:00 +1000 Subject: [PATCH] Initial commit for pre-commit-hooks * run 'pre-commit run --all-files' to setup/test the pre-commit hooks --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e135550 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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'