Skip to content

Commit 4f8660d

Browse files
committed
chore: add pre-commit hooks for code quality
1 parent dd1274b commit 4f8660d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: https://github.com/antonbabenko/pre-commit-tf
3+
rev: v1.96.1
4+
hooks:
5+
- id: terraform_fmt
6+
- id: terraform_validate
7+
- id: terraform_tflint
8+
args:
9+
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
10+
- id: terraform_checkov
11+
args:
12+
- --args=--quiet
13+
- --args=--skip-check CKV_AWS_144,CKV_AWS_145
14+
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v4.6.0
17+
hooks:
18+
- id: trailing-whitespace
19+
- id: end-of-file-fixer
20+
- id: check-yaml
21+
- id: check-merge-conflict
22+
- id: detect-private-key

0 commit comments

Comments
 (0)