ci: add pre-commit and remove those checks from Dockerfile
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
@@ -19,7 +19,7 @@ repos:
|
||||
hooks:
|
||||
- id: gitlab-ci-linter
|
||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||
rev: v9.1.0
|
||||
rev: v9.3.0
|
||||
hooks:
|
||||
- id: commitlint
|
||||
stages: [ commit-msg ]
|
||||
@@ -30,7 +30,10 @@ repos:
|
||||
- id: errcheck
|
||||
- id: go-fmt-goimports
|
||||
- id: go-test
|
||||
- id: go-vet
|
||||
- id: golangci-lint
|
||||
- id: gofumpt
|
||||
- id: staticcheck
|
||||
- repo: https://github.com/dnephin/pre-commit-golang
|
||||
rev: v0.5.1
|
||||
hooks:
|
||||
- id: go-mod-tidy
|
||||
|
||||
Reference in New Issue
Block a user