-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathprek.toml
More file actions
42 lines (38 loc) · 1.11 KB
/
Copy pathprek.toml
File metadata and controls
42 lines (38 loc) · 1.11 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
default_language_version.python = "python3"
default_stages = ["pre-commit", "pre-push"]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-added-large-files", args = [
"--maxkb=1024",
] },
{ id = "check-case-conflict" },
{ id = "check-merge-conflict" },
{ id = "check-symlinks" },
{ id = "check-toml" },
{ id = "destroyed-symlinks" },
{ id = "end-of-file-fixer", exclude = "\\.out$" },
{ id = "no-commit-to-branch", args = [
"--pattern",
"[^a-zA-Z0-9_/-]",
] },
{ id = "trailing-whitespace", exclude = "\\.out$" },
]
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v5.0.0"
hooks = [{ id = "forbid-submodules" }]
[[repos]]
# Keep in sync with the ruff pin in pyproject.toml; update-ruff.yml bumps both.
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.16.5"
hooks = [
{ id = "ruff-check", exclude = "\\.out$|^benches/" },
{ id = "ruff-format", args = [
"--check",
], exclude = "\\.out$|^benches/" },
]
[[repos]]
repo = "https://github.com/astral-sh/uv-pre-commit"
rev = "0.8.14"
hooks = [{ id = "uv-lock" }]