ci: add local module to pre-commit config
This commit is contained in:
+10
-9
@@ -24,16 +24,17 @@ repos:
|
||||
- id: commitlint
|
||||
stages: [ commit-msg ]
|
||||
additional_dependencies: [ '@commitlint/config-conventional' ]
|
||||
- repo: https://github.com/lietu/go-pre-commit
|
||||
rev: v0.0.1
|
||||
hooks:
|
||||
- id: errcheck
|
||||
- id: go-fmt-goimports
|
||||
- id: go-test
|
||||
- id: golangci-lint
|
||||
- id: gofumpt
|
||||
- id: staticcheck
|
||||
- repo: https://github.com/dnephin/pre-commit-golang
|
||||
rev: v0.5.1
|
||||
hooks:
|
||||
- id: go-mod-tidy
|
||||
- id: go-imports
|
||||
args:
|
||||
- -local
|
||||
- gitlab.com/unboundsoftware/shiny/authz_client
|
||||
- repo: https://github.com/lietu/go-pre-commit
|
||||
rev: v0.0.1
|
||||
hooks:
|
||||
- id: go-test
|
||||
- id: golangci-lint
|
||||
- id: gofumpt
|
||||
|
||||
Reference in New Issue
Block a user