-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
32 lines (29 loc) · 970 Bytes
/
.pre-commit-config.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
# SPDX-FileCopyrightText: 2023 Ross Patterson <[email protected]>
#
# SPDX-License-Identifier: MIT
# Run all test, linters, and other code checks before committing and pushing.
fail_fast: true
repos:
# <!--alex disable hooks-->
# Enforce conventional commit messages before pushing to a remote:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v3.29.0"
hooks:
- id: "commitizen"
# Checks defined in the `./Makefile`
- repo: "local"
hooks:
# Fail fast, run quicker checks first
- id: "test-push"
name: "test-push"
stages: ["push"]
entry: "make -e test-push"
language: "system"
pass_filenames: false
# Fail fast, run the longer running tests if everything else has already passed:
- id: "test"
name: "test"
stages: ["commit", "merge-commit", "push", "manual"]
entry: "make -e test"
language: "system"
pass_filenames: false