-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
58 lines (55 loc) · 1.84 KB
/
lefthook.yml
File metadata and controls
58 lines (55 loc) · 1.84 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
glob_matcher: doublestar
output:
- summary
- failure
commit-msg:
jobs:
- name: commitlint
run: mise exec -- npx --yes -p @commitlint/config-conventional -p @commitlint/cli commitlint --edit {1}
pre-commit:
parallel: true
jobs:
- name: fmt
run: mise run lint:fmt
glob: "**/*.rs"
- name: clippy
run: mise run lint:code
glob: "**/*.rs"
- name: agent-file-sync
run: diff AGENTS.md CLAUDE.md
glob:
- "AGENTS.md"
- "CLAUDE.md"
- name: orbit-skill-docs-sync
run: diff docs/source/queries/query_language.md skills/orbit/references/query_language.md
glob:
- "docs/source/queries/query_language.md"
- "skills/orbit/references/query_language.md"
- name: ontology-schema
run: mise run ontology:validate
glob: "fixtures/ontology/**/*.yaml"
- name: schema-version-check
run: bash ./scripts/check-schema-version.sh
glob:
- "config/graph.sql"
- "config/ontology/**/*.yaml"
- name: response-schema-version-check
run: bash ./scripts/check-response-schema-version.sh
glob:
- "crates/query-engine/formatters/src/graph.rs"
- "crates/query-engine/formatters/src/lib.rs"
- "crates/gkg-server/schemas/query_response.json"
- name: metrics-catalog-check
run: mise run metrics:catalog:check
glob:
- "crates/gkg-observability/**/*.rs"
- "crates/xtask/src/metrics_catalog.rs"
- "crates/gkg-observability/orbit-dashboards/gkg-metrics.json"
- name: dashboards-check
run: mise run dashboards:check
glob:
- "dashboards/orbit/**/*.jsonnet"
- "dashboards/orbit/**/*.libsonnet"
- "dashboards/orbit/*.dashboard.json"
- "crates/gkg-observability/orbit-dashboards/gkg-metrics.json"
- "crates/xtask/src/dashboards.rs"