-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
89 lines (82 loc) · 2.4 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
# PRE-MADE COMMIT VERIFIERS
# https://pre-commit.com/hooks.html
# To be able to use this file you need to install the below tools via your
# favorite package manager (pip, apt, brew, etc.)
#
# - pre-commit
#
# Once this tools are installed you need to put this file at the root of your
# repository. Then to try it you cna run the below command:
#
# pre-commit run --all-files
#
# If you want to this to be run automatically prior to any commit to the
# repository you need to install it as a pre_commit hook running the below
# command at the root of your repository
#
# pre-commit install
repos:
# GIT LINTER
- repo: "https://github.com/jorisroovers/gitlint"
rev: "main"
hooks:
- id: "gitlint"
# SHELL LINTER
- repo: "https://github.com/jumanjihouse/pre-commit-hooks"
rev: "master" # or specific git tag
hooks:
# - id: bundler-audit
# - id: check-mailmap
# - id: fasterer
# - id: forbid-binary
# - id: forbid-space-in-indent
# - id: git-check # Configure in .gitattributes
# - id: git-dirty # Configure in .gitignore
# - id: markdownlint # Configure in .mdlrc
# - id: reek
# - id: require-ascii
# - id: rubocop
# - id: script-must-have-extension
# - id: script-must-not-have-extension
- id: shellcheck
# - id: shfmt
# SPELLING LINTER
- repo: "https://github.com/codespell-project/codespell"
rev: "master"
hooks:
- id: "codespell"
# GENERAL LINTERS GIT + JSON + YAML + TOML + FILE FORMATING
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "master"
hooks:
- id: "check-json"
- id: "check-toml"
- id: "check-yaml"
args:
- "--unsafe"
- "--allow-multiple-documents"
- id: "end-of-file-fixer"
# - id: "no-commit-to-branch"
# args:
# - "-b, master"
# - "-b, release"
# - "-b, develop"
- id: "pretty-format-json"
args:
- "--autofix"
# - "--indent 4"
- id: "trailing-whitespace"
- id: "check-merge-conflict"
# COMMIT MESSAGE VERIFIER
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v2.17.2"
hooks:
- id: "commitizen"
stages:
- "commit-msg"
# MARKDOWN LINTER
# - repo: "https://github.com/igorshubovych/markdownlint-cli"
# rev: "master"
# hooks:
# - id: "markdownlint"