-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.12 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
exclude: '^package.json|package-lock.json$'
fail_fast: false
repos:
- repo: https://github.com/Contrast-Labs/detect-secrets
rev: v1.1.2
hooks:
- id: detect-secrets
name: Detect secrets
language: python
entry: detect-secrets-hook
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/golangci/golangci-lint
rev: v1.45.2
hooks:
- id: golangci-lint
- repo: https://github.com/Bahjat/pre-commit-golang
rev: a4be1d0f860565649a450a8d480e541844c14a07 # pragma: allowlist secret
hooks:
- id: go-unit-tests
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-json
- id: check-added-large-files
- id: no-commit-to-branch
args: ['--branch', 'main']
- id: pretty-format-json
args: ['--autofix']
- id: check-merge-conflict
- id: check-yaml
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint-fix
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
hooks:
- id: shellcheck