-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhk.pkl
More file actions
34 lines (32 loc) · 929 Bytes
/
hk.pkl
File metadata and controls
34 lines (32 loc) · 929 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
amends "package://github.com/jdx/hk/releases/download/v1.39.0/hk@1.39.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.39.0/hk@1.39.0#/Builtins.pkl"
local linters = new Mapping<String, Step> {
["actionlint"] = Builtins.actionlint
["golangci-lint"] = Builtins.golangci_lint
["mise"] = Builtins.mise
["newlines"] = Builtins.newlines
["pkl"] = Builtins.pkl
["pkl-format"] = Builtins.pkl_format
["prettier"] = Builtins.prettier
["shellcheck"] = Builtins.shellcheck
["shfmt"] = Builtins.shfmt
["trailing-whitespace"] = Builtins.trailing_whitespace
["yamllint"] = (Builtins.yamllint) {
check =
"yamllint -d '{extends: default, rules: {line-length: {max: 120}, comments: disable}}' -s {{ files }}"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}