-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhk.pkl
More file actions
43 lines (40 loc) · 1.1 KB
/
Copy pathhk.pkl
File metadata and controls
43 lines (40 loc) · 1.1 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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
amends "package://github.com/jdx/hk/releases/download/v1.43.0/hk@1.43.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.43.0/hk@1.43.0#/Builtins.pkl"
local linters = new Mapping<String, Step> {
["grite-sync"] {
check = "grite sync --pull --push"
}
["inko-fmt"] {
glob = "*.inko"
check = "inko fmt --check {{files}}"
fix = "inko fmt {{files}}"
}
["license-eye"] {
check = "license-eye header check {{files}}"
fix = "license-eye header fix {{files}}"
}
["cargo-fmt"] {
glob = "**/*.rs"
check = "cd native/tantivy-c && cargo fmt --check"
fix = "cd native/tantivy-c && cargo fmt"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}