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
29
// TODO use Builtins.pkl_format as soon as hk is released (>1.25.0)
21
30
pklformat = newConfig.Step {
22
31
stage = "<JOB_FILES>"
23
32
glob = "*.pkl"
33
+
prefix = pkl_prefix
24
34
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
35
+
// exit code of pkl format is 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
26
36
fix = "pkl format -w {{files}} || pkl format --silent {{files}}"
27
37
}
28
38
@@ -50,32 +60,39 @@ spotlessGradle = new Config.Step {
50
60
// Secret detection tools
51
61
52
62
// https://github.com/Yelp/detect-secrets
53
-
// mise: pipx:detect-secrets
54
63
detectsecrets = newConfig.Step {
55
64
// needs a baseline
56
65
// create with `detect-secrets scan > .secrets.baseline`
0 commit comments