-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
39 lines (36 loc) · 1.02 KB
/
.pre-commit-config.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
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.97.4
hooks:
- id: terraform_fmt
name: (terraform) Format .tf files with `terraform fmt`
args:
- --args=-diff
- id: terraform_validate
name: (terraform) Check with `terraform validate`
args:
- --hook-config=--retry-once-with-cleanup=true
- --tf-init-args=-upgrade
- id: terraform_tflint
name: (terraform) Check with `tflint`
args:
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
files: ^modules/
- id: terraform_docs
name: (terraform) Generate docs with `terraform-docs`
args: ["--args=--sort-by required"]
- repo: https://github.com/adrienverge/yamllint
rev: v1.36.2
hooks:
- id: yamllint
name: (yaml) Check with `yamllint`
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
name: (commit-message) Check conventional commit
stages: [commit-msg]
args: []