navidrome/lefthook.yml
2020-04-08 13:23:39 -04:00

14 lines
231 B
YAML

pre-push:
commands:
unit-tests:
tags: tests
run: go test ./...
pre-commit:
parallel: false
commands:
gofmt:
tags: style
glob: "*.go"
run: gofmt -w {staged_files}; git add {staged_files}