-
Notifications
You must be signed in to change notification settings - Fork 103
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.71 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: pretty-format-json
args: [--no-ensure-ascii, --autofix]
files: |
(?x)^(
src/MCPServer/lib/assets/.*\.json|
src/(MCPClient/MCPServer|dashboard)/install/.*\.json
)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.18.0"
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
exclude: |
(?x)^(
ISSUE_TEMPLATE\.md|
src/dashboard/(frontend/app|src/media)/vendor/.*
)
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:
- id: doctoc
files: |
(?x)^(
(CONTRIBUTING|SECURITY).*\.md|
hack/README\.md|
src/(MCPServer|MCPClient|dashboard)/install/README\.md
)
- repo: https://github.com/citation-file-format/cffconvert
# Current "2.0.0" git tag does not work because of
# https://github.com/citation-file-format/cffconvert/issues/375
rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c
hooks:
- id: validate-cff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.1
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-python-dateutil
- pytest
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
hooks:
- id: markdown-link-check
stages: [manual]
args: [--quiet, --config, .markdown-link-check.json]
exclude: |
(?x)^(
src/dashboard/src/media/vendor/.*\.md
)