Skip to content

Commit 9f047e3

Browse files
authored
Add pre commit config (milvus-io#22510)
Signed-off-by: zhuwenxing <[email protected]>
1 parent f5b8bca commit 9f047e3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.pre-commit-config.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/dnephin/pre-commit-golang
3+
rev: v0.5.0
4+
hooks:
5+
- id: golangci-lint
6+
args: [--config=.golangci.yml, --timeout=3m]
7+
- repo: https://github.com/crate-ci/typos
8+
rev: v1.13.10
9+
hooks:
10+
- id: typos
11+
- repo: https://github.com/zhuwenxing/trufflehog
12+
rev: v3.28.5
13+
hooks:
14+
- id: trufflehog
15+
name: TruffleHog
16+
description: Detect secrets in your data.
17+
entry: bash -c 'trufflehog git file://. --max-depth 1 --since-commit HEAD --only-verified --fail'
18+
language: system
19+
stages: ["commit", "push"]

0 commit comments

Comments
 (0)