-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
41 lines (37 loc) · 1.04 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
exclude: '^\.vscode/|^\.idea/|^\.git/|^\.run/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/natesales/goimports-reviser
rev: a807b1af1da00a44880668d880ef7d4ce51feb42
hooks:
- id: goimports-reviser
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
args: [ --skip, "go.*" ]
stages: [ commit, commit-msg ]
exclude_types: [ json ]
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-build
- id: go-mod-tidy
- repo: https://github.com/golangci/golangci-lint
rev: v1.57.2
hooks:
- id: golangci-lint-full
args:
- "--fix"
- "--enable=goimports"
- "--enable=gofmt"
- "--enable=gocritic"