2022-11-02 18:26:52 +00:00
|
|
|
---
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
2022-11-02 19:32:27 +00:00
|
|
|
rev: v1.76.0
|
2022-11-02 18:26:52 +00:00
|
|
|
hooks:
|
|
|
|
- id: terraform_fmt
|
|
|
|
- id: terraform_validate
|
2022-11-02 19:32:27 +00:00
|
|
|
args:
|
|
|
|
- --tf-init-args=-lockfile=readonly
|
|
|
|
- id: terraform_tflint
|
|
|
|
args:
|
|
|
|
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
|
|
|
|
- id: terraform_tfsec
|
|
|
|
# - id: terraform_providers_lock
|
2022-11-02 18:26:52 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-02 19:32:27 +00:00
|
|
|
rev: v4.3.0
|
2022-11-02 18:26:52 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: end-of-file-fixer
|
2023-07-25 23:56:53 +00:00
|
|
|
exclude: "^ansible_playbooks/vars/nomad_vars.sample.yml$"
|
2022-11-02 18:26:52 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/Yelp/detect-secrets
|
2022-11-02 19:32:27 +00:00
|
|
|
rev: v1.4.0
|
2022-11-02 18:26:52 +00:00
|
|
|
hooks:
|
|
|
|
- id: detect-secrets
|
|
|
|
args: ['--baseline', '.secrets-baseline']
|
2023-07-25 23:56:53 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: variable-sample
|
|
|
|
name: generate variable sample file
|
|
|
|
language: system
|
|
|
|
entry: bash -c 'venv/bin/python nomad_vars.py print > ./ansible_playbooks/vars/nomad_vars.sample.yml'
|
|
|
|
types: [file]
|