-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathhk.pkl
More file actions
35 lines (33 loc) · 794 Bytes
/
hk.pkl
File metadata and controls
35 lines (33 loc) · 794 Bytes
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
amends "package://github.com/jdx/hk/releases/download/v1.29.0/hk@1.29.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.29.0/hk@1.29.0#/Builtins.pkl"
local linters = new Mapping<String, Step> {
["cargo_fmt"] = Builtins.cargo_fmt
["cargo_clippy"] = Builtins.cargo_clippy
["pkl"] {
glob = "*.pkl"
check = "pkl eval {{files}} >/dev/null"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps {
["render"] {
check = "mise run render"
exclusive = true
}
...linters
}
}
["pre-push"] {
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}