ci: add local module to pre-commit config

This commit is contained in:
2023-01-13 13:44:33 +01:00
parent 19a9ffabb1
commit 28a5fdf48e
2 changed files with 12 additions and 15 deletions
+11 -9
View File
@@ -24,16 +24,18 @@ 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/schemas
- repo: https://github.com/lietu/go-pre-commit
rev: v0.0.1
hooks:
- id: go-test
- id: golangci-lint
- id: gofumpt
exclude: '^graph/generated/.*$|^graph/model/models_gen.go|^tools/.*$$'