-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
65 lines (61 loc) · 1.67 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.0.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
exclude: |
(?x)(
.*[.]patch
)
- id: trailing-whitespace
exclude: |
(?x)(
.*[.]patch
)
- repo: local
hooks:
- id: uncomment-bazelmod-includes
name: uncomment-bazelmod-includes
description: |
The repo version of MODULE.bazel may not have commented out includes.
language: pygrep
entry: \s*#\s*include
files: MODULE.bazel
- id: bcr-bazelmod-patch-applies
name: bcr-bazelmod-patch-applies
description: |
The patch in .bcr/patches/bazelmod.patch can be applied
language: system
entry: patch
args: ["-p1", "--dry-run", "-fi", ".bcr/patches/bazelmod.patch"]
pass_filenames: False
types: [text]
- id: github-bazelmod-patch-applies
name: github-bazelmod-patch-applies
description: |
The patch in .github/workflows/bazelmod.patch can be applied
language: system
entry: patch
args: ["-p1", "--dry-run", "-fi", ".github/workflows/bazelmod.patch"]
pass_filenames: False
types: [text]
- id: compare-versions
name: compare-versions
description: |
Compare the versions in CHANGELOG.md and MODULES.bazel.
language: system
entry: .pre-commit/check_version.sh
pass_filenames: False
types: [text]
- repo: https://github.com/keith/pre-commit-buildifier
rev: 8.0.1
hooks:
- id: buildifier
- id: buildifier-lint
args: ["--warnings=all"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.6
hooks:
- id: clang-format