-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathprek.toml
More file actions
119 lines (111 loc) · 2.2 KB
/
Copy pathprek.toml
File metadata and controls
119 lines (111 loc) · 2.2 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# 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
ci = {
autoupdate_schedule = "quarterly",
autofix_commit_msg = "prek auto-fixes",
autoupdate_commit_msg = "prek autoupdate"
}
[[repos]]
repo = "local"
hooks = [
{
id = "generate-api-docs",
name = "generate api docs",
entry = "python scripts/generate_api_docs.py",
language = "python",
pass_filenames = false
},
{
id = "ruff-check",
name = "ruff check",
entry = "uv run ruff check --fix src tests scripts examples",
language = "system",
pass_filenames = false
},
{
id = "ruff-format",
name = "ruff format",
entry = "uv run ruff format src tests scripts examples",
language = "system",
pass_filenames = false
},
{
id = "ty",
name = "ty",
entry = "uv run ty check src/elementembeddings",
language = "system",
pass_filenames = false,
stages = ["manual"]
}
]
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "check-yaml" },
{ id = "end-of-file-fixer" },
{ id = "trailing-whitespace" }
]
[[repos]]
repo = "https://github.com/igorshubovych/markdownlint-cli"
rev = "v0.47.0"
hooks = [
{
id = "markdownlint",
args = [
"--disable",
"MD013",
"MD024",
"MD025",
"MD033",
"MD041",
"--"
]
}
]
[[repos]]
repo = "https://github.com/kynan/nbstripout"
rev = "0.9.1"
hooks = [
{
id = "nbstripout",
args = [
"--drop-empty-cells",
"--keep-output"
]
}
]
[[repos]]
repo = "https://github.com/pre-commit/mirrors-prettier"
rev = "v4.0.0-alpha.8"
hooks = [
{
id = "prettier",
args = ["--write"],
additional_dependencies = ["prettier"]
}
]
[[repos]]
repo = "https://github.com/codespell-project/codespell"
rev = "v2.4.1"
hooks = [
{
id = "codespell",
stages = [
"pre-commit",
"commit-msg"
],
args = [
"--toml",
"pyproject.toml"
],
additional_dependencies = ["tomli"]
}
]
[[repos]]
repo = "https://github.com/adamchainz/blacken-docs"
rev = "1.20.0"
hooks = [
{ id = "blacken-docs" }
]