-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathhk.pkl
More file actions
44 lines (39 loc) · 1.04 KB
/
Copy pathhk.pkl
File metadata and controls
44 lines (39 loc) · 1.04 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
amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl"
local vendoredBats = List(
"test/bats/**",
"test/test_helper/bats-assert/**",
"test/test_helper/bats-file/**",
"test/test_helper/bats-support/**",
)
exclude = vendoredBats
local linters = new Mapping<String, Step> {
["actionlint"] = Builtins.actionlint
["cargo-fmt"] = Builtins.cargo_fmt
["cargo-clippy"] = Builtins.cargo_clippy
["shfmt"] = (Builtins.shfmt) {
glob = List("**/*.bats", "**/*.sh", "**/*.bash")
}
["shellcheck"] = (Builtins.shellcheck) {
glob = List("**/*.bats", "**/*.sh", "**/*.bash")
}
["pkl"] {
glob = "*.pkl"
check = "pkl eval {{files}} >/dev/null"
}
}
fail_fast = false
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}