-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.68 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
exclude: '^package.json|package-lock.json|.*?\.tsv$'
fail_fast: true
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
stages: [commit]
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
stages: [commit]
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.3 # pragma: allowlist secret
hooks:
- id: go-unit-tests
stages: [commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
stages: [commit]
#- id: no-commit-to-branch
# args: ['--branch', 'main']
# stages: [commit]
- id: pretty-format-json
args: ['--autofix']
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: check-yaml
stages: [commit]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.33.0
hooks:
- id: markdownlint-fix
stages: [commit]
args: ["--ignore", "README.md"] # This is a generated file
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
- id: shellcheck
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.36.0'
hooks:
- id: eslint
stages: [commit]
- repo: https://github.com/dnephin/pre-commit-golang
rev: 'v0.5.1'
hooks:
- id: go-mod-tidy