-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
31 lines (31 loc) · 880 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: (?i).*testdata/
exclude_types: [svg,mdx]
- id: trailing-whitespace
exclude_types: [svg,mdx]
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: golangci-lint
- id: go-mod-tidy
- repo: https://github.com/pinglin/conventional-pre-commit
rev: v1.1.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: local
hooks:
- id: generate-docs
name: Generate Docs
entry: bash -c 'make build-doc && make gen-doc'
language: system
files: \.(json|mdx)$