feat: add formatting pre-commit hook

This commit is contained in:
2024-09-05 00:12:34 +01:00
parent 531b5dabe2
commit 3d665bdde2
2 changed files with 17 additions and 0 deletions

11
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
args: [-s, -w]
- repo: https://github.com/bufbuild/buf
rev: v1.28.1
hooks:
- id: buf-format