-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (68 loc) · 1.76 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
default_language_version:
node: system
exclude: |
(?x)^(
(.*)?CHANGELOG\.md|
(.*)?README\.md|
(.*/)?package-lock\.json|
(.*/)?poetry\.lock
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.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|
vscode/rootfs/root/vscode\.extensions
vscode/rootfs/tmp/requirements\.txt
)$
- id: pretty-format-json
args: [--autofix, --indent, '4']
exclude: |
(?x)^(
(.*)?(cdk|package|tsconfig|tslint)\.json
)$
- id: pretty-format-json
args: [--autofix, --indent, '2']
files: |
(?x)^(
(.*)?(cdk|package|tsconfig|tslint)\.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']
exclude: |
(?x)^(
(.*)?vscode/config\.yaml
)
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.18
hooks:
- id: mdformat
additional_dependencies:
- mdformat-frontmatter
- mdformat-gfm
- mdformat-gfm-alerts
- mdformat-toc
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint