-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathlefthook.yml
More file actions
46 lines (38 loc) · 1.12 KB
/
Copy pathlefthook.yml
File metadata and controls
46 lines (38 loc) · 1.12 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2026 The IREE Authors
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Root lefthook configuration delegates policy to the repository presubmit
# script. Lefthook owns the Git hook event and manual run groups; presubmit.py
# owns file selection and profiles such as default, paranoid, and ci.
min_version: 2.1.9
pre-commit:
# Presubmit commands already emit concise phase markers. Stream them so a
# cold build or static-analysis action remains distinguishable from a hang.
follow: true
fail_on_changes: always
commands:
precommit:
run: python dev.py bazel precommit --profile paranoid --staged
commit-msg:
commands:
commit-message:
run: python build_tools/lefthook/commit_msg.py {1}
fix:
follow: true
commands:
fix:
run: python dev.py bazel fix
precommit:
follow: true
commands:
precommit:
run: python dev.py bazel precommit --profile paranoid
presubmit:
follow: true
commands:
presubmit:
run: python dev.py bazel presubmit --profile ci
check:
follow: true
commands:
check:
run: python dev.py bazel presubmit --profile ci