Skip to content

Commit 91e289e

Browse files
committed
Add pre-commit hook to run Makefile tasks
Includes go code generation and bindings.
1 parent 74207fb commit 91e289e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,20 @@ repos:
3333
"javascript",
3434
"proto",
3535
]
36+
37+
- repo: local
38+
hooks:
39+
- id: generate
40+
name: generate
41+
language: system
42+
entry: bash -c 'make gen'
43+
always_run: true
44+
pass_filenames: false
45+
require_serial: true
46+
- id: bindings
47+
name: bindings
48+
language: system
49+
entry: bash -c 'make bindings'
50+
always_run: true
51+
pass_filenames: false
52+
require_serial: true

0 commit comments

Comments
 (0)