Webhook-to-SSE gateway with hierarchical topic routing and signature verification
1repos:
2 - repo: https://github.com/pre-commit/pre-commit-hooks
3 rev: v6.0.0
4 hooks:
5 - id: trailing-whitespace
6 - id: end-of-file-fixer
7 exclude: ^\.loq_cache$
8 - id: check-yaml
9 - id: check-toml
10 - id: check-added-large-files
11
12 - repo: https://github.com/codespell-project/codespell
13 rev: v2.4.1
14 hooks:
15 - id: codespell
16
17 - repo: local
18 hooks:
19 - id: gofmt
20 name: gofmt
21 entry: gofmt -l -w
22 language: system
23 types: [go]
24
25 - id: go-vet
26 name: go vet
27 entry: go vet ./...
28 language: system
29 types: [go]
30 pass_filenames: false
31
32 - id: staticcheck
33 name: staticcheck
34 entry: staticcheck ./...
35 language: system
36 types: [go]
37 pass_filenames: false
38
39 - id: loq
40 name: loq (max 500 lines)
41 entry: loq check
42 language: system
43 types: [go]
44 pass_filenames: false
45
46 - id: go-test
47 name: go test (100% coverage)
48 entry: ./check-coverage 100
49 language: system
50 types: [go]
51 pass_filenames: false
52 require_serial: true