forked from IBM/sarama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.08 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
fail_fast: false
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: conventional-commit-msg-validation
name: commit message conventional validation
language: pygrep
entry: '^(?:fixup! )?(breaking|build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w `])+([\s\S]*)'
args: [--multiline, --negate]
stages: [commit-msg]
- id: commit-msg-needs-to-be-signed-off
name: commit message needs to be signed off
language: pygrep
entry: "^Signed-off-by:"
args: [--multiline, --negate]
stages: [commit-msg]
- id: gofmt
name: gofmt
description: Format files with gofmt.
entry: gofmt -l
language: golang
files: \.go$
args: []