forked from smart-mcp-proxy/mcpproxy-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (29 loc) · 845 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
33 lines (29 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Pre-commit hooks for MCPProxy
# Install: brew install prek && prek install && prek install --hook-type pre-push
# Run manually: prek run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- repo: local
hooks:
- id: gofmt
name: gofmt
entry: gofmt -w
language: system
types: [go]
- id: swagger-verify
name: Verify OpenAPI spec is up to date
entry: make swagger-verify
language: system
stages: [pre-push]
pass_filenames: false
- id: go-build
name: go build
entry: go build -o /dev/null ./cmd/mcpproxy
language: system
stages: [pre-push]
pass_filenames: false