Skip to content

Commit 47cd78b

Browse files
crrowclaude
andcommitted
chore: add prek pre-commit hooks
Hooks: go build, goimports, golangci-lint, go vet. Install with: prek install Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89d1fc4 commit 47cd78b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: go-build
5+
name: go build
6+
entry: go build ./...
7+
language: system
8+
pass_filenames: false
9+
types: [go]
10+
11+
- id: goimports
12+
name: goimports
13+
entry: goimports -local github.com/rararulab/devkit -l -w
14+
language: system
15+
types: [go]
16+
17+
- id: golangci-lint
18+
name: golangci-lint
19+
entry: golangci-lint run --config .golangci.yml
20+
language: system
21+
pass_filenames: false
22+
types: [go]
23+
24+
- id: go-vet
25+
name: go vet
26+
entry: go vet ./...
27+
language: system
28+
pass_filenames: false
29+
types: [go]

0 commit comments

Comments
 (0)