tf/.pre-commit-config.yaml

36 lines
1.3 KiB
YAML
Raw Normal View History

2024-01-25 19:25:52 +01:00
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-01-25 19:27:21 +01:00
rev: v4.5.0
2024-01-25 19:25:52 +01:00
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/adrienverge/yamllint.git
2024-01-25 19:27:21 +01:00
rev: v1.33.0
2024-01-25 19:25:52 +01:00
hooks:
- id: yamllint
args: ['--strict']
exclude: ".enc.yaml"
- repo: https://github.com/antonbabenko/pre-commit-terraform
2024-01-25 19:27:21 +01:00
rev: v1.86.0
2024-01-25 19:25:52 +01:00
hooks:
- id: terraform_fmt
- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md
- --hook-config=--add-to-existing-file=true
- id: terraform_tflint
args:
- '--args=--only=terraform_deprecated_interpolation'
- '--args=--only=terraform_deprecated_index'
- '--args=--only=terraform_unused_declarations'
- '--args=--only=terraform_comment_syntax'
- '--args=--only=terraform_documented_outputs'
- '--args=--only=terraform_typed_variables'
- '--args=--only=terraform_module_pinned_source'
- '--args=--only=terraform_naming_convention'
- '--args=--only=terraform_required_version'
- '--args=--only=terraform_required_providers'
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'