Skip to content

Commit

Permalink
Add pre-commit for basic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
theognis1002 committed Aug 1, 2024
1 parent d7c374e commit cc6d29f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/dnephin/pre-commit-golang
rev: v1.2.1
hooks:
- id: go-fmt
- id: go-imports
- id: go-vet
- id: golangci-lint
args: [--fast]
- id: go-test

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer

0 comments on commit cc6d29f

Please sign in to comment.