-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
67 lines (58 loc) · 1.48 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# yamllint disable rule:comments-indentation
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
default_stages:
- commit
- push
repos:
# common stuff
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: mixed-line-ending
args:
- '--fix=no'
- id: check-yaml
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-vcs-permalinks
- id: forbid-new-submodules
# commit messages (IMPORTANT: install it with: `pre-commit install --hook-type commit-msg`)
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.0
hooks:
- id: gitlint
stages:
- commit-msg
# # shellcheck
# - repo: git://github.com/detailyang/pre-commit-shell
# rev: 1.0.5
# hooks:
# - id: shell-lint
# args:
# - '--format=json'
# replace help in USAGE of the README
- repo: git://github.com/mbideau/pre-commit-makefile
rev: v0.3.0
hooks:
- id: makefile-doc
# shellcheck and markdown mostly
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.4
hooks:
- id: shellcheck
- id: markdownlint
# - id: require-ascii
# - id: script-must-have-extension
# - id: script-must-not-have-extension
# 'make all' before push
- repo: git://github.com/primeroz/pre-commit-hook-makefile-task
rev: v0.0.2
hooks:
- id: makefile-task
args:
- 'all'
stages:
- push