-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
44 lines (44 loc) · 1.19 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
repos:
- repo: "https://github.com/gruntwork-io/pre-commit"
rev: v0.1.22
hooks:
- id: terragrunt-hclfmt
- repo: "https://github.com/antonbabenko/pre-commit-terraform"
rev: v1.81.0
hooks:
- id: terraform_fmt
args:
- "--args=-recursive"
- id: terraform_tflint
args:
- "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"
- id: terraform_validate
- id: terraform_tfsec
- id: terraform_checkov
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
args:
- "--markdown-linebreak-ext=md"
- id: mixed-line-ending
args:
- "--fix=auto"
- id: check-case-conflict
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: check-added-large-files
- id: detect-private-key
- id: no-commit-to-branch
- repo: "https://github.com/pre-commit/mirrors-prettier"
rev: v3.0.0
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.5.3
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]