navidrome/lefthook.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
231 B
YAML
Raw Normal View History

2020-04-03 20:48:14 +02:00
pre-push:
commands:
unit-tests:
tags: tests
run: go test ./...
pre-commit:
parallel: false
commands:
gofmt:
tags: style
glob: "*.go"
2020-04-08 19:23:39 +02:00
run: gofmt -w {staged_files}; git add {staged_files}