-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
43 lines (37 loc) · 870 Bytes
/
prek.toml
File metadata and controls
43 lines (37 loc) · 870 Bytes
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
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
{ id = "check-added-large-files" },
{ id = "check-json" },
{ id = "check-toml" },
{ id = "check-yaml" },
]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "ruff-check"
name = "ruff check"
entry = "ruff check --fix"
language = "system"
types_or = ["python", "pyi", "jupyter"]
[[repos.hooks]]
id = "ruff-format"
name = "ruff format"
entry = "ruff format"
language = "system"
types_or = ["python", "pyi", "jupyter"]
[[repos.hooks]]
id = "oxfmt"
name = "oxfmt"
entry = "oxfmt"
language = "system"
types_or = ["json", "yaml", "markdown"]
[[repos.hooks]]
id = "tombi-format"
name = "tombi format"
entry = "tombi format"
language = "system"
files = '\.toml$'