Skip to content

Commit

Permalink
Add buf mod commands to pre-commit hooks (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayberkozgur authored Jul 11, 2023
1 parent ea15691 commit db9b1fd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@
entry: buf format -w --exit-code
types: [proto]
pass_filenames: false
- id: buf-mod-update
name: buf mod update
language: golang
entry: buf mod update
files: '(buf\.lock|buf\.yaml)'
pass_filenames: false
- id: buf-mod-prune
name: buf mod prune
language: golang
entry: buf mod prune
files: '(buf\.lock|buf\.yaml)'
pass_filenames: false

0 comments on commit db9b1fd

Please sign in to comment.