Skip to content

Commit

Permalink
Add go pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaswilde committed Apr 24, 2022
1 parent 3c284e9 commit ea8415e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@ repos:
- id: yamllint
args:
- -c=.yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-cyclo
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-beta.5
hooks:
- id: go-mod-tidy
- id: go-test-pkg
- id: go-fumpt
- id: go-vet

0 comments on commit ea8415e

Please sign in to comment.