-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.pre-commit-config.yaml
52 lines (45 loc) · 1.64 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
40
41
42
43
44
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.1
hooks:
- id: terraform_fmt
name: Format Terraform code
- id: terraform_docs
name: Generate Terraform documentation
- id: terraform_tflint
name: Validate Terraform tests
exclude: ^(examples|tests)
args:
- --args=--enable-rule=terraform_comment_syntax
- --args=--enable-rule=terraform_documented_outputs
- --args=--enable-rule=terraform_documented_variables
- --args=--enable-rule=terraform_naming_convention
- --args=--enable-rule=terraform_standard_module_structure
- --args=--enable-rule=terraform_unused_required_providers
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
name: Validate Markdown text
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
name: Makes sure files end in a newline and only a newline
exclude_types: [json]
- id: check-merge-conflict
name: Check for files that contain merge conflict strings
- id: no-commit-to-branch
name: Don't commit to main branch.
args: [--branch, main]
fail_fast: true
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.1
hooks:
- id: terraform_validate
name: Validate Terraform code
exclude: ^(examples|tests)
args:
- --tf-init-args=-upgrade
- --tf-init-args=-backend=false
- --hook-config=--retry-once-with-cleanup=true