Skip to content

Commit 6113205

Browse files
committed
Add pre-commit hook
1 parent bebc0e3 commit 6113205

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/tekwizely/pre-commit-golang
3+
rev: master
4+
hooks:
5+
- id: go-fumpt
6+
- id: go-mod-tidy
7+
- id: go-lint
8+
- id: go-imports
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v2.3.0
11+
hooks:
12+
- id: check-yaml
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace

0 commit comments

Comments
 (0)