-
-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (47 loc) · 1.22 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (47 loc) · 1.22 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.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/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.4
hooks:
# Run the linter.
- id: ruff
args: [--select=F401, --fix]
- 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"
exclude: |
^\.venv/|
\.backup$