Skip to content

Commit 53e91d5

Browse files
Merge pull request #68 from amolkahat/pre_commit_fixes
Update pre-commit hook to run golinters
2 parents 427bc59 + 91ac143 commit 53e91d5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
repos:
2+
- repo: https://github.com/dnephin/pre-commit-golang
3+
rev: v0.5.1
4+
hooks:
5+
- id: go-fmt
6+
exclude: ^vendor
7+
- id: go-vet
8+
- id: go-mod-tidy
9+
- id: go-lint
10+
211
- repo: local
312
hooks:
413
- id: make-manifests
@@ -20,15 +29,6 @@ repos:
2029
args: ['operator-lint']
2130
pass_filenames: false
2231

23-
- repo: https://github.com/dnephin/pre-commit-golang
24-
rev: v0.5.1
25-
hooks:
26-
- id: go-fmt
27-
exclude: ^vendor
28-
- id: go-vet
29-
- id: go-mod-tidy
30-
- id: go-lint
31-
3232
- repo: https://github.com/pre-commit/pre-commit-hooks
3333
rev: v4.3.0
3434
hooks:

0 commit comments

Comments
 (0)