-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.pre-commit-config.yaml
73 lines (64 loc) · 2.08 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
61
62
63
64
65
66
67
68
69
70
71
72
73
default_language_version:
python: python3.10
default_stages:
- commit
- push
fail_fast: False
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1 # Get the latest from: https://github.com/jorisroovers/gitlint/releases
hooks:
- id: gitlint
stages: [commit-msg]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0 # Get the latest from: https://github.com/asottile/add-trailing-comma
hooks:
- id: add-trailing-comma
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.24 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
- id: terraform-validate
- id: terraform-fmt
- id: shellcheck
- id: gofmt
- id: golint
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
- id: terraform_tflint
args:
- --args=--module
- --args=--config=.tflint.hcl
- id: terraform_validate
- id: terraform_tfsec
- id: terraform_docs
- id: terraform_checkov
- repo: https://github.com/ambv/black
rev: 24.10.0 # Get the latest from: https://github.com/psf/black/releases
hooks:
- id: black
language_version: python3
args: ['--line-length', '80']