-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (49 loc) · 1.63 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (49 loc) · 1.63 KB
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
# Canonical pre-commit configuration for tfroot-* repositories.
# This file is bundled into the tfroot-runner container image to pre-cache hooks.
# It is also fetched by the shared OpenTofu workflow at CI time.
#
# To update hooks for all tfroot repos, modify this file and rebuild the image.
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.3.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.105.0
hooks:
- id: terraform_validate
args:
- --hook-config=--retry-once-with-cleanup=true
- --args=-no-color
- --tf-init-args=-reconfigure
- --tf-init-args=-upgrade
- --tf-init-args=-backend=false
- id: terraform_tflint
args:
- --args=--minimum-failure-severity=error
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_checkov
args:
- --args=--config-file __GIT_WORKING_DIR__/.checkov.yml
- id: terraform_fmt
args:
- --args=-no-color
- --args=-diff
- --args=-recursive
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: README.md
- id: mixed-line-ending
- id: trailing-whitespace