-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
60 lines (55 loc) · 1.61 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
fail_fast: false
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.3
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_validate
exclude: '^[^/]+$'
- id: terraform_tflint
args:
- "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"
- "--args=--disable-rule=terraform_standard_module_structure"
- id: terraform_checkov
args:
- --args=--quiet
- --args=--skip-framework=cloudformation
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.21
hooks:
- id: shellcheck
- repo: https://github.com/cisagov/pre-commit-packer
rev: v0.0.2
hooks:
- id: packer_fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
exclude_types: [svg]
- id: trailing-whitespace
exclude_types: [svg]
args:
- --markdown-linebreak-ext=md
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- id: check-added-large-files
args: ["--maxkb=4096"]
- id: detect-private-key
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
args: ["-l", "-i", "2", "-ci", "-sr", "-w"]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.22.0
hooks:
- id: check-github-actions
- id: check-github-workflows