-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (76 loc) Β· 3.1 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (76 loc) Β· 3.1 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: mixed-line-ending
- repo: local
hooks:
- id: go-mod-tidy
name: go mod tidy
entry: go mod tidy
language: system
files: '(go\.mod|go\.sum)$'
pass_filenames: false
- id: go-vet
name: go vet
entry: go vet ./...
language: system
types: [go]
pass_filenames: false
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run
language: system
types: [go]
pass_filenames: false
- id: trufflehog
name: trufflehog (secret scan, offline)
description: Detect secrets in staged changes via local trufflehog binary (no API verification).
entry: trufflehog git file://. --since-commit HEAD --no-verification --no-update --fail
language: system
pass_filenames: false
stages: [pre-commit, pre-push]
- id: coily-skill-regen
name: regenerate coily-passthroughs skill
description: Walks the in-process cli.Command tree and rewrites skills/coily-passthroughs/SKILL.md. Triggers on Go source under cmd/, pkg/, configs/commands, or .coily/coily.yaml. Adds the regenerated file back to staging so the commit picks up any drift.
entry: bash -c 'go run -tags dev ./cmd/coily lockdown skill >/dev/null && git add skills/coily-passthroughs/SKILL.md'
language: system
files: '^(cmd/|pkg/)[^/]*/[^/]*\.go$|^\.coily/coily\.yaml$'
pass_filenames: false
- id: coily-lint
name: coily lint .coily/coily.yaml
description: Enforce that every commands.<verb> in .coily/coily.yaml maps to `make <verb>` with a matching Makefile target and `## desc` auto-help string.
entry: bash -c 'go run -tags dev ./cmd/coily lint'
language: system
files: '^(\.coily/coily\.yaml|Makefile)$'
pass_filenames: false
- id: coily-trailer
name: coily audit-log trailer
description: Append Audit-log trailers to the commit message based on coily's audit log for this repo.
entry: coily git trailer-hook
language: system
stages: [prepare-commit-msg]
always_run: true
require_serial: true
# BEGIN managed by agentic-os/scripts/apply-agentic-os-hooks.py
- repo: https://github.com/coilysiren/agentic-os
rev: v0.2.8
hooks:
# catalog-doc-size, catalog-trifecta, documentation-layout, code-comments
# disabled locally pending legacy sweep (forgejo #96). All four are
# always_run + pass_filenames=false and fail on pre-existing files.
# - id: catalog-doc-size
# - id: catalog-trifecta
# - id: documentation-layout
# - id: code-comments
- id: catalog-block-present
- id: validate-skills
- id: dead-cross-links
- id: closes-issue
- id: conventional-commit
# END managed by agentic-os/scripts/apply-agentic-os-hooks.py