-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
41 lines (37 loc) · 1.03 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- id: packer-validate
name: Packer validate
description: Checks packer template is valid.
entry: hooks/packer_validate.sh
language: script
files: (\.pkr\.hcl)$
always_run: false
- id: packer-fmt
name: Packer fmt
description: Rewrites packer template files to canonical format.
entry: hooks/packer_fmt.sh
language: script
files: (\.pkr\.hcl)$
always_run: false
- id: terraform-validate
name: Terraform validate
description: Checks terraform configuration is valid.
entry: hooks/terraform_validate.sh
language: script
files: \.tf$
always_run: false
- id: terraform-fmt
name: Terraform fmt
description: Reformat terraform configuration in the standard style.
entry: hooks/terraform_fmt.sh
language: script
files: \.tf$
always_run: false
- id: terragrunt-hclfmt
name: Terragrunt hclfmt
description: Rewrite terragrunt configuration into a canonical format.
entry: hooks/terragrunt_hclfmt.sh
language: script
files: \.hcl$
always_run: false
exclude: (\.pkr\.hcl|\.pkrtpl\.hcl|\.pkvars\.hcl)$