Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
117 lines (93 loc) · 1.95 KB
/
Copy pathprek.toml
File metadata and controls
117 lines (93 loc) · 1.95 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
default_install_hook_types = ["pre-commit", "pre-push"]
default_language_version.python = "3.15"
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
[[repos.hooks]]
id = "check-added-large-files"
[[repos.hooks]]
id = "check-ast"
[[repos.hooks]]
id = "check-json"
[[repos.hooks]]
id = "check-merge-conflict"
[[repos.hooks]]
id = "check-toml"
[[repos.hooks]]
id = "check-xml"
[[repos.hooks]]
id = "check-yaml"
args = ["--unsafe"]
[[repos.hooks]]
id = "debug-statements"
[[repos.hooks]]
id = "end-of-file-fixer"
[[repos.hooks]]
id = "mixed-line-ending"
args = ["--fix=lf"]
[[repos.hooks]]
id = "name-tests-test"
args = ["--pytest-test-first"]
[[repos.hooks]]
id = "trailing-whitespace"
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.17.3"
[[repos.hooks]]
id = "ruff-check"
args = ["--fix", "--exit-non-zero-on-fix"]
[[repos.hooks]]
id = "ruff-format"
[[repos]]
repo = "https://github.com/astral-sh/uv-pre-commit"
rev = "0.13.6"
[[repos.hooks]]
id = "uv-lock"
[[repos]]
repo = "local"
[[repos.hooks]]
id = "pyrefly"
name = "pyrefly"
types = ["python"]
entry = "uv run pyrefly check"
language = "system"
pass_filenames = false
always_run = true
[[repos.hooks]]
id = "ty"
name = "ty"
types = ["python"]
entry = "uv run ty check"
language = "system"
pass_filenames = false
always_run = true
[[repos.hooks]]
id = "pytest"
name = "pytest"
stages = ["pre-push"]
types = ["python"]
entry = "uv run pytest"
language = "system"
pass_filenames = false
always_run = true
[[repos.hooks]]
id = "rust-fmt"
name = "rust fmt"
entry = "cargo fmt -- --check"
language = "system"
pass_filenames = false
types = ["rust"]
[[repos.hooks]]
id = "rust-clippy"
name = "rust clippy"
entry = "cargo clippy --all-targets --all-features -- -D warnings"
language = "system"
pass_filenames = false
types = ["rust"]
[[repos.hooks]]
id = "rust-test"
name = "rust test"
entry = "cargo test"
language = "system"
pass_filenames = false
types = ["rust"]