-
Notifications
You must be signed in to change notification settings - Fork 65
/
.pre-commit-config.yaml
68 lines (66 loc) · 1.79 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
default_language_version:
node: system
exclude: |
(?x)^(
(.*/)?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
args:
- --unsafe # needed for parsing CFN
- id: end-of-file-fixer
exclude: .*\.json-result
- id: file-contents-sorter
files: |
(?x)^(
\.dockerignore|
\.gitignore|
\.vscode/dictionaries/.*\.txt|
)$
- id: pretty-format-json
args: [--autofix, --indent, '4']
exclude: |
(?x)^(
(.*)?(angular|cdk|package|tsconfig(\.spec)?|tslint)\.json
)$
- id: pretty-format-json
args: [--autofix, --indent, '2']
files: |
(?x)^(
(.*)?(angular|cdk|package|tsconfig(\.spec)?|tslint)\.json
)$
- id: trailing-whitespace
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
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)^(
tests/unit/module/staticsite/fixtures/expected_yaml/.*\.(yaml|yml)|
docs/runway-example\.yml
)$
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.19
hooks:
- id: mdformat
additional_dependencies:
- mdformat-frontmatter
- mdformat-gfm
- mdformat-gfm-alerts
- mdformat-tables
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint