-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (58 loc) · 1.78 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
# DO NOT CHANGE. This file is being managed from a central repository
# To know more simply visit https://github.com/honestbank/.github/blob/main/docs/about.md
default_install_hook_types: [ pre-commit, commit-msg ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- id: check-yaml
stages: [commit]
args: ["--allow-multiple-documents"]
- id: detect-aws-credentials
stages: [commit]
args: ["--allow-missing-credentials"]
- repo: https://github.com/golangci/golangci-lint
rev: v1.60.3
hooks:
- id: golangci-lint
stages: [commit]
args: ["--timeout=10m"]
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-imports
stages: [commit]
- repo: https://github.com/gitguardian/ggshield
rev: v1.31.0
hooks:
- id: ggshield
language: python
stages: [commit]
args: ["secret", "scan", "pre-commit"]
- repo: local
hooks:
- id: generate-secrets-loader
name: generate-secrets-loader
entry: ./secrets-loader.generator.sh
language: script
stages: [commit]
- id: generate-catalog
name: generate-catalog
entry: ./catalog-info.generator.sh
language: script
pass_filenames: false
stages: [commit]
- id: commit-msg-spell-check
name: commit-msg-spell-check
entry: ./spell-check.sh
language: script
stages: ["commit-msg"]
- id: append-ticket-id
name: Append Ticket ID to Commit Message
entry: ./append-ticket-id.sh
language: script
stages: [ commit-msg ]