-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
75 lines (73 loc) · 1.82 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
default_language_version:
node: system
exclude: |
(?x)^(
(.*/)?package-lock\.json|
(.*/)?poetry\.lock
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: file-contents-sorter
args: [--unique]
files: |
(?x)^(
\.dockerignore|
\.gitignore
)$
- id: pretty-format-json
args: [--autofix, --indent, '4']
exclude: |
(?x)^(
package\.json
)$
- id: pretty-format-json
args: [--autofix, --indent, '2']
files: |
(?x)^(
package\.json
)$
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/ITProKyle/pre-commit-hook-yamlfmt
rev: v0.3.0
hooks:
- id: yamlfmt
args: [--mapping, '2', --offset, '2', --sequence, '4']
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat-frontmatter
- mdformat-gfm
- mdformat-toc
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.72.1
hooks:
- id: renovate-config-validator
exclude: |
(?x)^(
presets/automerge-manager\.json
)$
files: |
(?x)^(
(^|/).?renovate.json(?:rc)?(?:\.json5?)?|
presets/.*\.json|
default\.json
)$