-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 853 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 853 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: ^(testdata/|docs/.*\.md$)
- id: trailing-whitespace
exclude: ^docs/.*\.md$
# Check formatting and lint for starlark code
- repo: https://github.com/keith/pre-commit-buildifier
rev: 8.0.3
hooks:
- id: buildifier
- id: buildifier-lint
# Enforce that commit messages allow for later changelog generation
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.7.1
hooks:
# Requires that commitizen is already installed
- id: commitizen
stages: [commit-msg]
# Check validity of GitHub actions configuration
- repo: https://github.com/mpalmer/action-validator
rev: v0.6.0
hooks:
- id: action-validator