-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhk.pkl
More file actions
67 lines (64 loc) · 1.9 KB
/
Copy pathhk.pkl
File metadata and controls
67 lines (64 loc) · 1.9 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
amends "package://github.com/jdx/hk/releases/download/v1.54.1/hk@1.54.1#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.54.1/hk@1.54.1#/Builtins.pkl"
min_hk_version = "1.48.0"
local linters = new Mapping<String, Step> {
["actionlint"] = Builtins.actionlint
["case-conflict"] = Builtins.check_case_conflict
["deno-check"] = (Builtins.deno_check) {
glob = List(
"home/dot_agents/skills/maintain-agent-guidance/scripts/*.ts",
"tests/agent-guidance-session-evidence_test.ts",
"tests/e2e/**/*.ts"
)
}
["deno-fmt"] = (Builtins.deno) {
glob = List(
"deno.json",
"home/dot_agents/skills/maintain-agent-guidance/scripts/*.ts",
"tests/agent-guidance-session-evidence_test.ts",
"tests/e2e/**/*.ts"
)
}
["deno-lint"] {
glob = List(
"home/dot_agents/skills/maintain-agent-guidance/scripts/*.ts",
"tests/agent-guidance-session-evidence_test.ts",
"tests/e2e/**/*.ts"
)
check = "deno lint {{files}}"
}
["merge-conflict"] = Builtins.check_merge_conflict
["mise"] = Builtins.mise
["private-key"] = Builtins.detect_private_key
["shellcheck"] {
glob = List(
"**/*.sh",
"home/dot_local/bin/executable_login-nu",
"home/dot_local/bin/executable_ssh-keygen-force-agent",
"home/dot_local/bin/executable_wayland-session-exec",
"home/dot_local/libexec/executable_chezmoi-distrobox-scroll-update",
"home/dot_local/bin/executable_chatgpt",
"home/dot_local/libexec/executable_chatgpt-update",
"tests/e2e/containers/bazzite-crun",
"tests/e2e/containers/bazzite-podman"
)
check = "shellcheck {{files}}"
}
["taplo"] = (Builtins.taplo) {
exclude = "home/dot_codex/modify_private_config.toml"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["check"] {
steps = linters
}
["fix"] {
fix = true
steps = linters
}
}