generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lefthook.yaml
34 lines (30 loc) · 971 Bytes
/
.lefthook.yaml
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
---
# yaml-language-server: $schema=https://json.schemastore.org/lefthook.json
# Configuration for lefthook
# https://github.com/evilmartians/lefthook
assert_lefthook_installed: true
output:
- meta # Show meta information about lefthook (version, etc.)
- summary # Show summary block (successful and failed steps) printing
- empty_summary # Show summary heading when there are no steps to run
- success # Show successful steps printing
- failure # Show failed steps printing
- execution_out # Show printing execution output
- skips # Show "skip" printing (i.e. no files matched)
commit-msg:
commands:
commitlint-check:
run: commitlint --edit
pre-push:
commands:
trunk-check:
run: trunk check --diff full --print-failures {push_files}
follow: true
parallel: true
pre-commit:
commands:
trunk-fmt:
run: trunk fmt --diff compact --print-failures {staged_files}
stage_fixed: true
follow: true
parallel: true