-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (32 loc) · 986 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (32 loc) · 986 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
28
29
30
31
32
33
34
35
36
# Read the docs here: https://pre-commit.com and http://jorisroovers.github.io/gitlint/
# Install hooks to your clone:
# $ pre-commit install --install-hooks
# and
# $ pre-commit install --install-hooks -t commit-msg
default_stages: [commit]
fail_fast: false
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: no-commit-to-branch
args: ['--branch=stage/latest', '--pattern=stage/*']
- id: trailing-whitespace
- repo: https://github.com/jorisroovers/gitlint
rev: v0.12.0
hooks:
- id: gitlint
name: Commit message check
language: python
entry: gitlint --msg-filename
stages: [commit-msg]
# kate: indent-width 2; tab-width 2;