-
Notifications
You must be signed in to change notification settings - Fork 37
/
.pre-commit-config.yaml
49 lines (49 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
42
43
44
45
46
47
48
49
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: fix-encoding-pragma
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/tofuutils/pre-commit-opentofu
rev: v1.0.2
hooks:
- id: tofu_fmt
- id: tofu_validate
- id: tofu_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_module_pinned_source'
- '--args=--only=terraform_naming_convention'
- '--args=--only=terraform_workspace_remote'
- id: tofu_trivy
- repo: local
hooks:
- id: custom-terraform-docs
name: custom-terraform-docs
entry: tools/terraform_docs.sh
language: script
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: custom-packer
name: custom-packer
entry: tools/packer_tools.sh
language: script
always_run: true
pass_filenames: false