-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
64 lines (56 loc) · 1.81 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
---
# This file configures https://pre-commit.com/
# to use specific hooks and options.
fail_fast: false
repos:
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.6
hooks:
- id: check-mailmap
- id: forbid-binary
- id: git-check # Configure in .gitattributes
- id: git-dirty # Configure in .gitignore
- id: require-ascii
exclude: ^ci/ansi$ # 3rd-party
- id: script-must-have-extension
exclude: app/etc/skel/.*
- id: script-must-not-have-extension
- id: shellcheck
exclude: ^ci/ansi$|app/etc/skel/.* # 3rd-party
- id: shfmt
exclude: ^ci/ansi$ # 3rd-party
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args: [--format, parsable, --strict]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.1.0 # or specific tag
hooks:
- id: yamlfmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: detect-private-key
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.13
hooks:
- id: forbid-crlf
- id: forbid-tabs
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
- id: gitlint
stages: [commit-msg]
- id: gitlint
entry: gitlint --commits upstream/master..
exclude: .*
always_run: true
stages: [manual]