2020-02-15 14:16:45 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2020-03-20 10:52:35 +00:00
|
|
|
rev: v2.5.0
|
2020-02-15 14:16:45 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: pretty-format-json
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: detect-aws-credentials
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: flake8
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: sort-simple-yaml
|
|
|
|
- repo: git://github.com/antonbabenko/pre-commit-terraform
|
2020-03-20 10:52:35 +00:00
|
|
|
rev: v1.27.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
|
2020-02-15 14:16:45 +00:00
|
|
|
hooks:
|
|
|
|
- id: terraform_fmt
|
|
|
|
- id: terraform_docs
|
2020-03-20 10:52:35 +00:00
|
|
|
- id: terragrunt_fmt
|
2020-02-15 14:16:45 +00:00
|
|
|
- id: terraform_tflint
|
|
|
|
args: ['--deep']
|
|
|
|
- id: terraform_validate
|
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
|
|
sha: 1.11.2
|
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
- id: shfmt
|
|
|
|
- id: script-must-have-extension
|
|
|
|
- id: git-check
|
|
|
|
# - id: git-dirty
|
|
|
|
- id: forbid-binary
|
|
|
|
- id: bundler-audit
|
2020-03-06 11:19:52 +00:00
|
|
|
- repo: https://github.com/cesar-rodriguez/terrascan
|
|
|
|
rev: v0.2.0
|
|
|
|
hooks:
|
|
|
|
- id: terrascan
|
|
|
|
pass_filenames: false
|
|
|
|
args: [-l=infra] #NOTE: that this is the directory you created earlier to host your terraform
|
|
|
|
verbose: true
|
2020-02-15 14:16:45 +00:00
|
|
|
#- repo: https://github.com/ansible/ansible-lint.git
|
|
|
|
# rev: v4.1.0
|
|
|
|
# hooks:
|
|
|
|
# - id: ansible-lint
|
|
|
|
# files: \.(yaml|yml)$
|
|
|
|
#- repo: https://github.com/pre-commit/mirrors-autopep8
|
|
|
|
# rev: 'v1.5' # Use the sha / tag you want to point at
|
|
|
|
# hooks:
|
|
|
|
# - id: autopep8
|