-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathprek.toml
More file actions
92 lines (86 loc) · 1.72 KB
/
Copy pathprek.toml
File metadata and controls
92 lines (86 loc) · 1.72 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Configuration file for `prek`, a git hook framework written in Rust.
# See https://prek.j178.dev for more information.
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.16.9"
hooks = [
{
id = "ruff-check",
args = [
"--fix",
"--exit-non-zero-on-fix",
]
},
{ id = "ruff-format" }
]
[[repos]]
repo = "https://github.com/betterleaks/betterleaks"
rev = "v1.9.0"
hooks = [
{ id = "betterleaks" }
]
[[repos]]
repo = "https://github.com/PyCQA/pylint"
rev = "v4.1.1"
hooks = [
{
id = "pylint",
name = "pylint",
entry = "pylint",
language = "system",
types = ["python"],
args = ["-j2"],
}
]
[[repos]]
repo = "https://github.com/pypa/pip-audit"
rev = "v2.10.1"
hooks = [
{
id = "pip-audit",
args = ["."],
files = '^(requirements.*\.txt|setup\.cfg|setup\.py|pyproject\.toml)$',
stages = ["pre-push"],
}
]
[[repos]]
repo = "https://github.com/pre-commit/mirrors-mypy"
rev = "v2.3.1"
hooks = [
{
id = "mypy",
args = [ ],
exclude = "tests/|examples/|docs/",
additional_dependencies = [
"httpx",
"types-setuptools",
"importlib-metadata",
"types-Pillow",
"tomli",
"tomli_w",
]
}
]
[[repos]]
repo = "local"
hooks = [
{
id = "sphinx-html",
name = "Sphinx HTML build",
entry = "make -C docs html",
language = "system",
pass_filenames = false,
files = '^docs/.*$|^mindee/.*\.py$',
stages = ["pre-push"],
},
{
id = "sphinx-linkcheck",
name = "Sphinx Linkcheck",
entry = "make -C docs linkcheck",
language = "system",
pass_filenames = false,
files = '^docs/.*$|^mindee/.*\.py$',
stages = ["pre-push"],
}
]