-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhk.pkl
More file actions
45 lines (42 loc) · 1.08 KB
/
Copy pathhk.pkl
File metadata and controls
45 lines (42 loc) · 1.08 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
amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl"
local pre_commit_steps = new Mapping<String, Step> {
["rumdl"] {
glob = Regex(#"\.md$"#)
check = "rumdl check {{files}}"
fix = "rumdl check --fix {{files}}"
}
["trufflehog"] {
check = "trufflehog filesystem {{files}} --no-update --fail"
}
}
local pre_push_steps = new Mapping<String, Step> {
["cibars-boost"] {
check = #"bash -c '_pidfile="$HOME/.cibars/pids/$(git rev-parse --show-toplevel | tr / _).pid"; kill -USR1 $(cat "$_pidfile" 2>/dev/null) 2>/dev/null || true'"#
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps {
...pre_commit_steps
}
}
["pre-push"] {
steps {
...pre_push_steps
}
}
["check"] {
steps {
...pre_commit_steps
}
}
["fix"] {
fix = true
steps {
...pre_commit_steps
}
}
}