-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
72 lines (66 loc) · 2.46 KB
/
.pre-commit-config.yaml
File metadata and controls
72 lines (66 loc) · 2.46 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
hooks:
- id: mypy
additional_dependencies:
- opentelemetry-api>=1.27
- opentelemetry-sdk>=1.27
- opentelemetry-exporter-otlp-proto-http>=1.27
- types-pyyaml>=6.0
- repo: local
hooks:
- 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]
- repo: local
hooks:
- id: check-coily-yaml
name: coily.yaml verb/target name match
description: Enforce that every .coily/coily.yaml command's run is `make <verb>`. Tracks coilysiren/coily#116.
entry: python3 scripts/check-coily-yaml.py
language: system
files: ^\.coily/coily\.yaml$
pass_filenames: false
- repo: local
hooks:
- 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 coilyco-ai/scripts/apply-commit-msg-hook.py
- repo: local
hooks:
- id: closes-issue
name: commit closes a GitHub issue
description: Reject commit messages without a GitHub closing keyword (closes/fixes/resolves #N).
entry: python3 scripts/check-commit-closes-issue.py
language: system
stages: [commit-msg]
# END managed by coilyco-ai/scripts/apply-commit-msg-hook.py
# BEGIN managed by coilyco-ai/scripts/apply-catalog-block-hook.py
- repo: local
hooks:
- id: catalog-block-present
name: .coily/coily.yaml catalog block present
description: Assert this repo declares its catalog metadata. See coilysiren/coilyco-ai#420.
entry: python3 scripts/check-catalog-block.py
language: system
always_run: true
pass_filenames: false
stages: [pre-commit]
# END managed by coilyco-ai/scripts/apply-catalog-block-hook.py