-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
78 lines (71 loc) · 2.17 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
74
75
76
77
78
---
# https://github.com/antonbabenko/pre-commit-terraform
# brew install pre-commit terraform-docs tflint tfsec trivy checkov terrascan infracost tfupdate minamijoyo/hcledit/hcledit jq
# https://github.com/pre-commit/pre-commit-hooks
# https://github.com/python-jsonschema/check-jsonschema/
# https://github.com/trufflesecurity/trufflehog
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
name: Check Conventional Commit
stages: [commit-msg]
args: [--strict, --force-scope]
# - repo: https://github.com/koalaman/shellcheck-precommit
# rev: v0.10.0
# hooks:
# - id: shellcheck
# name: Check Shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
name: Check YAML
stages: [pre-commit]
# - id: check-json
# name: Check JSON
- id: end-of-file-fixer
name: Check End of Files
stages: [pre-commit]
- id: trailing-whitespace
name: Check Trailing Whitespace
stages: [pre-commit]
args: [
--markdown-linebreak-ext=.md
]
- id: check-merge-conflict
name: Check for Merge Conflicts
stages: [pre-commit]
- id: detect-private-key
name: Check Private Keys
stages: [pre-commit]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.2
hooks:
# - id: check-github-actions
# name: Check GitHub Actions
# args: ["--verbose"]
- id: check-github-workflows
name: Check GitHub Workflows
stages: [pre-commit]
args: ["--verbose"]
- repo: local
hooks:
- id: trufflehog
name: Check TruffleHog
entry: bash -c 'trufflehog git file://. --since-commit HEAD --only-verified --fail --no-update'
language: system
stages: ["pre-commit", "push"]
- id: shellspec
name: Check Shellspec
entry: bash -c 'shellspec --no-kcov'
language: system
stages: [pre-commit]
pass_filenames: false
- id: shellcheck
name: Check Shellcheck
entry: bash -c 'shellcheck -x **/*.sh'
language: system
stages: [pre-commit]
files: ^(lib/.*\.sh|bumper\.sh)$