-
Notifications
You must be signed in to change notification settings - Fork 50
/
.pre-commit-config.yaml
31 lines (31 loc) · 1.37 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.62.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
- repo: https://github.com/terraform-docs/terraform-docs
rev: "v0.15.0"
hooks:
- id: terraform-docs-go
name: "Main terraform module docs"
args: ["-c", ".terraform-docs.yml", "markdown", "."]
- id: terraform-docs-go
name: "Computation terraform module docs"
args: ["-c", "modules/.terraform-docs.yml", "markdown", "modules/computation"]
- id: terraform-docs-go
name: "Datastore terraform module docs"
args: ["-c", "modules/.terraform-docs.yml", "markdown", "modules/datastore"]
- id: terraform-docs-go
name: "Metadata Service terraform module docs"
args: ["-c", "modules/.terraform-docs.yml", "markdown", "modules/metadata-service"]
- id: terraform-docs-go
name: "Step Functions terraform module docs"
args: ["-c", "modules/.terraform-docs.yml", "markdown", "modules/step-functions"]
- id: terraform-docs-go
name: "UI terraform module docs"
args: ["-c", "modules/.terraform-docs.yml", "markdown", "modules/ui"]