You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note: supported since pkl 0.30 - https://pkl-lang.org/main/current/release-notes/0.30.html
20
34
// TODO use Builtins.pkl_format as soon as hk is released (>1.25.0)
21
35
pklformat = newConfig.Step {
22
36
stage = "<JOB_FILES>"
23
37
glob = "*.pkl"
24
-
check = "pkl format --silent {{files}}"
25
-
// exit code of pkl format is 1 if changes were made, so we first attempt to write changes with -w, and if that fails, we run again with --silent to ensure a zero exit code on success
26
-
fix = "pkl format -w {{files}} || pkl format --silent {{files}}"
38
+
check = "\(pkl_prefix)pkl format --silent {{files}}"
39
+
// exit code of pkl format not zero if changes were made, so we first attempt to write changes with -w, and then run again with --silent to ensure a zero exit code on success
40
+
fix = "\(pkl_prefix)pkl format -w {{files}} ||\(pkl_prefix) pkl format --silent {{files}}"
27
41
}
28
42
29
43
spotlessGradle = newConfig.Step {
@@ -50,32 +64,33 @@ spotlessGradle = new Config.Step {
50
64
// Secret detection tools
51
65
52
66
// https://github.com/Yelp/detect-secrets
53
-
// mise: pipx:detect-secrets
54
67
detectsecrets = newConfig.Step {
55
68
// needs a baseline
56
69
// create with `detect-secrets scan > .secrets.baseline`
0 commit comments