mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 11:41:18 +00:00
feat: add formatting pre-commit hook
This commit is contained in:
11
.pre-commit-config.yaml
Normal file
11
.pre-commit-config.yaml
Normal 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
|
||||
Reference in New Issue
Block a user