quintodrome/lefthook.yml

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

18 lines
305 B
YAML
Raw Normal View History

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