-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathhk.pkl
More file actions
37 lines (34 loc) · 1.17 KB
/
Copy pathhk.pkl
File metadata and controls
37 lines (34 loc) · 1.17 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
amends "package://github.com/jdx/hk/releases/download/v2.1.0/hk@2.1.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v2.1.0/hk@2.1.0#/Builtins.pkl"
stash_untracked = false
local fast_steps = new Mapping<String, Step> {
["biome"] = (Builtins.biome) {
check = "pnpm exec biome check --no-errors-on-unmatched {{files}}"
fix = "pnpm exec biome check --write --no-errors-on-unmatched {{files}}"
}
["check-added-large-files"] = (Builtins.check_added_large_files) {
// Embedded WASM is verified against native Rust in the package tests.
exclude = List("packages/permissions/generated/bytes.js")
}
["check-merge-conflict"] = Builtins.check_merge_conflict
["newlines"] = Builtins.newlines
["rustfmt"] = (Builtins.rustfmt) {
check = "rustfmt --check --edition 2021 {{files}}"
fix = "rustfmt --edition 2021 {{files}}"
}
["trailing-whitespace"] = Builtins.trailing_whitespace
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = fast_steps
}
["check"] {
steps = fast_steps
}
["fix"] {
fix = true
steps = fast_steps
}
}