mirror of
https://github.com/kasmtech/terraform.git
synced 2026-01-23 02:24:11 +00:00
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
|
rev: v1.89.1
|
|
hooks:
|
|
- id: tfupdate
|
|
name: Autoupdate Terraform versions
|
|
args:
|
|
- --args=terraform
|
|
- --args=--version "~> 1.0"
|
|
- id: tfupdate
|
|
name: Autoupdate AWS version
|
|
args:
|
|
- --args=provider aws
|
|
- --args=--version "~> 5.0"
|
|
- id: tfupdate
|
|
name: Autoupdate OCI version
|
|
args:
|
|
- --args=provider oci
|
|
- --args=--version "~> 5.0"
|
|
- id: tfupdate
|
|
name: Autoupdate DigitalOcean version
|
|
args:
|
|
- --args=provider digitalocean
|
|
- --args=--version "~> 2.0"
|
|
- id: tfupdate
|
|
name: Autoupdate Acme version
|
|
args:
|
|
- --args=provider acme
|
|
- --args=--version "~> 2.0"
|
|
- id: tfupdate
|
|
name: Autoupdate TLS version
|
|
args:
|
|
- --args=provider tls
|
|
- --args=--version "~> 4.0"
|
|
- id: terraform_fmt
|
|
- 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_documented_variables'
|
|
- '--args=--only=terraform_typed_variables'
|
|
- '--args=--only=terraform_module_pinned_source'
|
|
- '--args=--only=terraform_required_version'
|
|
- '--args=--only=terraform_required_providers'
|
|
- '--args=--minimum-failure-severity=error'
|
|
- --args=--fix
|
|
- id: terraform_validate
|
|
args:
|
|
- --tf-init-args=-upgrade
|
|
- --hook-config=--retry-once-with-cleanup=true
|
|
- id: terraform_docs
|
|
args:
|
|
- --hook-config=--path-to-file=README.md
|
|
- --hook-config=--add-to-existing-file=true
|
|
- --hook-config=--create-file-if-not-exist=true
|