-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.pre-commit-config.yaml
37 lines (37 loc) · 1.12 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: file-contents-sorter
files: ^(\.cspell\/custom-dictionary-workspace.txt|requirements\.txt)$
args: ["--ignore-case", "--unique"]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-yaml
exclude: (example_chart.yml)
- id: check-json
exclude: ^(\.cspell\.json|\.devcontainer\/devcontainer\.json)$
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
files: ^(\.cspell\.json|\.devcontainer\/devcontainer\.json)$
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
# - repo: https://github.com/PyCQA/isort
# rev: 5.12.0
# hooks:
# - id: isort
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint-fix # Configure in .mdlrc
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.0.0
hooks:
- id: cspell
additional_dependencies:
- "@cspell/dict-en-gb"