Install pre-commit into your local machine.
brew install pre-commit
Install pre-commit
into your git repository.
pre-commit install
Add a file named .pre-commit-config.yaml
into the root directory of your repository.
repos:
- repo: https://github.com/ssengalanto/revidere
rev: v1.1.0
hooks:
- id: go-fmt
- id: go-imports
- id: go-vet
- id: go-build
- id: go-test
- id: go-mod-tidy
- id: golangci-lint # requires github.com/golangci/