-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy path.pre-commit-config.yaml
33 lines (32 loc) · 1.03 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
# Optional local setup for a git pre-commit hook to automatically format/lint.
# This avoids sending a red PR and having to find the buildifier output on the CI results page.
# See https://pre-commit.com for more information on installing pre-commit.
# See https://pre-commit.com/hooks.html for more hooks.
repos:
# Check formatting and lint for starlark code
- repo: https://github.com/keith/pre-commit-buildifier
rev: 8.0.0
hooks:
- id: buildifier
- id: buildifier-lint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: |
(?x)^(
tests/testdata/
)
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
exclude: |
(?x)^(
CHANGELOG.md|
tests/testdata/
)