-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
35 lines (35 loc) · 1 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-json
types: [file] # override `types: [json]`
files: \.(json|json.sample)$
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: pretty-format-json
types: [file] # override `types: [json]`
files: \.(json|json.sample)$
args: [--autofix, --no-sort-keys]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.40.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.6.0
hooks:
- id: pretty-format-yaml
args: [--autofix]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.4.0
hooks:
- id: commitlint