navidrome/lefthook.yml

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

17 lines
305 B
YAML
Raw Normal View History

2020-04-03 14:48:14 -04:00
pre-push:
2020-05-07 12:00:10 -04:00
parallel: true
2020-04-03 14:48:14 -04:00
commands:
unit-tests:
tags: tests
run: go test ./...
2020-05-07 11:57:07 -04:00
lint:
tags: tests
run: golangci-lint run
2020-04-03 14:48:14 -04:00
pre-commit:
parallel: false
commands:
gofmt:
tags: style
glob: "*.go"
2020-04-08 13:23:39 -04:00
run: gofmt -w {staged_files}; git add {staged_files}