forked from ceph/ceph-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (30 loc) · 908 Bytes
/
.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
---
repos:
# Check if the commit message has a valid sign-off.
- repo: https://github.com/gklein/check_signoff
rev: v1.0.5
hooks:
- id: check-signoff
# Catch gofmt issues, if any.
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.3.5
hooks:
- id: go-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
# Verify syntax of yaml and json files.
- id: check-json
- id: check-yaml
args: [--multi]
exclude: ^charts/ceph-csi-(cephfs|rbd)/templates/
# Makes sure that files end in a new line.
- id: end-of-file-fixer
# Trims trailing whitespace.
- id: trailing-whitespace
# Run commitlint check on the commit message.
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
hooks:
- id: commitlint
stages: [commit-msg]