ci: add local module to pre-commit config

This commit is contained in:
2023-01-13 09:47:39 +01:00
parent dcbdef35cf
commit dee3bb5d60
2 changed files with 11 additions and 15 deletions
+10 -9
View File
@@ -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