-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
105 lines (94 loc) · 2.88 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config
fail_fast: false
default_stages:
- pre-commit
- pre-push
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.97.4
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_providers_lock
- id: terraform_tflint
args:
- "--args=--only=terraform_deprecated_interpolation"
- "--args=--only=terraform_deprecated_index"
- "--args=--only=terraform_unused_declarations"
- "--args=--only=terraform_comment_syntax"
- "--args=--only=terraform_documented_outputs"
- "--args=--only=terraform_documented_variables"
- "--args=--only=terraform_typed_variables"
- "--args=--only=terraform_module_pinned_source"
- "--args=--only=terraform_naming_convention"
- "--args=--only=terraform_required_version"
- "--args=--only=terraform_required_providers"
- "--args=--only=terraform_standard_module_structure"
- "--args=--only=terraform_workspace_remote"
- id: terraform_trivy
- id: terraform_validate
- id: terragrunt_fmt
- id: terragrunt_validate
- id: terragrunt_validate_inputs
- id: terragrunt_providers_lock
- id: terraform_wrapper_module_for_each
- id: terrascan
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2
hooks:
- id: markdownlint-cli2
args:
- --config
- .ci/markdownlint/.markdownlint.yaml
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.88.14
hooks:
- id: trufflehog
- repo: https://github.com/sirosen/texthooks
rev: 0.6.8
hooks:
- id: fix-spaces
- id: alphabetize-codeowners
- id: fix-ligatures
- id: fix-smartquotes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-executables-have-shebangs
- id: check-added-large-files
args:
- "--maxkb=4096"
- id: check-json
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/google/go-jsonnet
rev: v0.20.0
hooks:
- id: jsonnet-format
- id: jsonnet-lint
- repo: https://github.com/google/yamlfmt
rev: v0.16.0
hooks:
- id: yamlfmt
language: system
args:
- --conf
- .ci/yamlfmt/.yamlfmt
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.2.2
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- pre-push
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.3
hooks:
- id: cspell