Skip to content

Commit d928be1

Browse files
committed
chore(lefthook): add tool update commands
1 parent 7855a9e commit d928be1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.lefthook.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ pre-commit:
2828
rc=$?
2929
test $rc -eq 0 || echo "error: found files modified by hooks" >&2
3030
exit $rc
31+
32+
update-tools:
33+
commands:
34+
dprint:
35+
priority: 1
36+
run: wrun generate github dprint >.lefthook/wrun-args-dprint.txt
37+
dprint-plugins:
38+
env:
39+
WRUN_ARGS_FILE: .lefthook/wrun-args-dprint.txt
40+
run: wrun -- config update
41+
shellcheck:
42+
run: wrun generate shellcheck >.lefthook/wrun-args-shellcheck.txt
43+
shfmt:
44+
run: wrun generate github mvdan sh --tool shfmt >.lefthook/wrun-args-shfmt.txt

0 commit comments

Comments
 (0)