Skip to content

Commit

Permalink
chore(lefthook): tweak job names
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Dec 24, 2024
1 parent beccb7d commit 21f1258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .lefthook.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pre-commit:
jobs:
- name: linters
- name: tools
group:
parallel: true
jobs:
Expand All @@ -15,15 +15,15 @@ pre-commit:
run: mise exec -- shfmt --write --simplify {staged_files}
- name: shellcheck
run: mise exec -- shellcheck --format=gcc {staged_files}
- name: hook-made-changes
- name: tool-made-changes
run: |-
if test -n "${CI-}"; then
git diff --exit-code {staged_files}
else
git diff --quiet {staged_files}
fi
rc=$?
test $rc -eq 0 || echo "error: found files modified by hooks" >&2
test $rc -eq 0 || echo "error: found files modified by tools" >&2
exit $rc
commit-msg:
Expand Down

0 comments on commit 21f1258

Please sign in to comment.