-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.4 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
repos:
# ## general
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.2.0
# hooks:
# # Common errors
# - id: end-of-file-fixer
# exclude_types: [sql]
# - id: trailing-whitespace
# args: [--markdown-linebreak-ext=md]
# exclude_types: [sql]
# - id: check-yaml
# - id: check-executables-have-shebangs
# # Cross platform
# - id: check-case-conflict
# - id: mixed-line-ending
# args: [--fix=lf]
# exclude_types: [sql, txt]
## terraform
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
hooks:
- id: terraform_fmt
- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md # Valid UNIX path. I.e. ../TFDOC.md or docs/README.md etc.
- --hook-config=--add-to-existing-file=true # Boolean. true or false
- --hook-config=--create-file-if-not-exist=true # Boolean. true or false
- --args=--hide providers
# - id: terraform_tfsec
- id: terraform_validate
args:
- --init-args=-lockfile=readonly
- --args=-json
- --args=-no-color
# - id: terraform_providers_lock
# args:
# - --args=-platform=windows_amd64
# - --args=-platform=darwin_amd64
# - --args=-platform=darwin_arm64
# - --args=-platform=linux_amd64