terraform-provider-garage/.pre-commit-config.yaml

18 lines
540 B
YAML
Raw Normal View History

repos:
- repo: local
hooks:
- id: tfplugindocs
name: tfplugindocs
entry: bash -c "go get github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs && go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs && git checkout go.mod go.sum"
language: system
types: [go]
pass_filenames: false
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-imports
- id: go-lint
- id: go-mod-tidy
- id: go-vet