-
Notifications
You must be signed in to change notification settings - Fork 248
/
.pre-commit-config.yaml
55 lines (49 loc) · 1.27 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
# See CONTRIBUTING.md for instructions.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: >-
(?x)^(
bazel-.*/.*
|.*\.patch
|.*\.diff
|test/(expected|.*/expected)/.*\.txt
|examples/(?!.*CMakeLists\.txt$).*\.txt
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: mixed-line-ending
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/keith/pre-commit-buildifier
rev: 7.3.1.1
hooks:
- id: buildifier
args: &args
# Keep this argument in sync with .bazelci/config.yaml
- --warnings=all
- id: buildifier-lint
args: *args
- repo: https://github.com/mpalmer/action-validator
rev: v0.6.0
hooks:
- id: action-validator
- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
hooks:
- id: actionlint
- repo: https://github.com/mrtazz/checkmake.git
rev: 0.2.2
hooks:
- id: checkmake
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: >-
(?x)^(
examples/.*
)$