-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprek.toml
More file actions
56 lines (55 loc) · 1.27 KB
/
Copy pathprek.toml
File metadata and controls
56 lines (55 loc) · 1.27 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
# General-purpose checks (Rust-native, zero-deps, instant)
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-added-large-files", args = ["--maxkb=1024"] },
{ id = "check-case-conflict" },
{ id = "check-illegal-windows-names" },
{ id = "check-merge-conflict" },
{ id = "check-toml" },
{ id = "check-yaml" },
{ id = "end-of-file-fixer" },
{ id = "fix-byte-order-marker" },
{ id = "mixed-line-ending", args = ["--fix=no"] },
{ id = "trailing-whitespace" },
]
[[repos]]
repo = "local"
hooks = [
{
id = "cargo-fmt",
name = "cargo fmt",
language = "system",
entry = "cargo",
args = ["fmt", "--check"],
files = "\\.rs$",
pass_filenames = false,
},
{
id = "cargo-clippy",
name = "cargo clippy",
language = "system",
entry = "cargo",
args = ["clippy", "--", "-D", "warnings"],
files = "\\.rs$",
pass_filenames = false,
},
{
id = "ruff-format",
name = "ruff format",
language = "system",
entry = "uv",
args = ["run", "ruff", "format", "--check"],
files = "\\.pyi?$",
pass_filenames = false,
},
{
id = "basedpyright",
name = "basedpyright",
language = "system",
entry = "uv",
args = ["run", "basedpyright"],
files = "\\.pyi?$",
pass_filenames = false,
},
]