-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
94 lines (94 loc) · 2.31 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit
fail_fast: true
exclude: boilerplate\..*|.*\.gen\..*|.*\.gotmpl$
repos:
- repo: local
hooks:
- id: commitlint
name: commitlint
entry: commitlint/commitlint:edge
args:
- --config=commitlint.config.ts
- --edit
- --strict
language: docker_image
pass_filenames: false
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-yaml
- id: check-symlinks
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: detect-private-key
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
hooks:
- id: mdformat
args:
- --wrap=80
exclude: (\.chglog/.*)\.md
additional_dependencies:
- mdformat-toc
- mdformat-tables
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args:
- --mapping=2
- --sequence=4
- --offset=2
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: shell-fmt-go
args:
- -w
- -s
- -l
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args:
- --severity=warning
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fmt
- id: go-mod-tidy
- id: go-build-mod
- repo: local
hooks:
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run --timeout=10m
language: system
files: \.go$
pass_filenames: false
- id: make-tests
name: Make Tests
entry: make test
types: [go]
language: system
files: \.go$
pass_filenames: false
- id: make-audit
name: Make audit
entry: make audit
types: [go]
language: system
files: \.go$
pass_filenames: false