-
Notifications
You must be signed in to change notification settings - Fork 328
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.63 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
default_stages: [pre-commit, pre-push]
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
name: Check for merge conflict strings
stages: [pre-commit]
- id: check-yaml
name: Check yaml syntax
args: [--allow-multiple-documents]
stages: [pre-commit]
- id: trailing-whitespace
name: Trim all whitespace from end of lines
stages: [pre-commit]
args:
- --markdown-linebreak-ext=md
- repo: local
hooks:
- id: make-codespell
name: Verify codespell
description: Runs `make verify-codespell` to verify codespell format.
entry: make verify-codespell
language: system
stages: [pre-commit]
- id: cpo-containerfiles-in-sync
name: Keep cpo-containerfiles-in-sync
entry: ./hack/tools/git-hooks/cpo-containerfiles-in-sync.sh
language: script
pass_filenames: false
args:
- Containerfile.control-plane
- Dockerfile.control-plane
description: Ensures the CPO container files stay in sync
stages: [pre-commit]
- id: make-verify
name: Run make verify
description: Runs `make verify`.
entry: make verify
language: system
stages: [pre-push]
require_serial: true
- id: make-test
name: Run make test
description: Runs `make test`.
entry: make test
language: system
stages: [ pre-push ]
exclude: '^vendor/|^hack/tools/vendor/|^api/vendor/'
fail_fast: true