-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (45 loc) · 1.11 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
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: git://github.com/sirosen/check-jsonschema
rev: 0.3.0
hooks:
- id: check-github-workflows
- repo: git://github.com/executablebooks/mdformat
rev: 0.6.4 # Use the ref you want to point at
hooks:
- id: mdformat
# Optionally add plugins
additional_dependencies:
- mdformat-gfm
- mdformat-black
- repo: git://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.0.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: git://github.com/yiranzai/pre-commit-golang
rev: v0.3.7
hooks:
- id: go-fmt
- id: go-vet
- id: go-mod-tidy
- id: golines
- id: go-imports
- id: go-unit-tests
# - id: go-lint
# - id: go-imports
# - id: go-cyclo
# args: [-over=15]
# - id: validate-toml
# - id: no-go-testing
# - id: gometalinter
# - id: golangci-lint
# - id: go-critic
# - id: go-unit-tests
# - id: go-build