-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (46 loc) · 1.15 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
fail_fast: true
default_language_version:
python: python3.10
repos:
- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
- id: codespell
additional_dependencies:
- tomli
args:
[
"--write-changes",
"--interactive",
"3",
"--exclude-file=go.mod,go.sum",
]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.19.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: /.*\.(yaml|json)$
- id: end-of-file-fixer
files: /.*\.(yaml|json)$
- id: check-yaml
files: /.*\.yaml$
args: [--allow-multiple-documents]
- id: check-json
files: /.*\.json$
- id: pretty-format-json
args: [--autofix]
files: /.*\.json$
- id: check-toml
files: /.*\.toml$
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
- id: go-imports
- id: no-go-testing
- id: golangci-lint
- id: go-unit-tests