mirror of
https://github.com/robinovitch61/lore.git
synced 2026-10-09 19:49:07 +02:00
29 lines
755 B
YAML
29 lines
755 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: goimports
|
|
name: Format Go Code
|
|
entry: goimports
|
|
args: [-w]
|
|
language: system
|
|
types: [go]
|
|
|
|
- id: golangci-lint
|
|
name: Lint Go Code
|
|
entry: golangci-lint
|
|
args: [run]
|
|
language: system
|
|
pass_filenames: false # run on the entire project, not just staged files
|
|
|
|
- id: go-build
|
|
name: Build Go Code
|
|
entry: go build ./...
|
|
language: system
|
|
pass_filenames: false # run on the entire project, not just staged files
|
|
|
|
- id: go-test
|
|
name: Test Go Code
|
|
entry: go test ./...
|
|
language: system
|
|
pass_filenames: false # run on the entire project, not just staged files
|