-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathprek.toml
More file actions
93 lines (82 loc) · 2.17 KB
/
prek.toml
File metadata and controls
93 lines (82 loc) · 2.17 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
# 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
default_install_hook_types = [
"pre-commit",
"commit-msg",
"pre-push",
]
default_stages = ["pre-commit"]
[[repos]]
repo = "https://github.com/compilerla/conventional-pre-commit"
rev = "v4.4.0"
hooks = [
{
id = "conventional-pre-commit",
stages = ["commit-msg"],
args = ["feat", "fix", "build", "ci", "chore", "docs", "drop", "edit",
"perf", "polish", "root", "refactor", "revert", "style", "temp", "tests"]
}
]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-executables-have-shebangs" },
{ id = "check-json" },
{ id = "check-merge-conflict" },
{ id = "check-symlinks" },
{ id = "check-toml" },
{ id = "check-yaml", args = ["--allow-multiple-documents"] },
{ id = "detect-private-key" },
{ id = "end-of-file-fixer" },
{ id = "fix-byte-order-marker" },
{ id = "mixed-line-ending" },
{ id = "trailing-whitespace" },
]
[[repos]]
repo = "meta"
hooks = [{ id = "check-useless-excludes" }]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.15.9"
hooks = [{ id = "ruff-check" }, { id = "ruff-format" }]
[[repos]]
repo = "https://github.com/codespell-project/codespell"
rev = "v2.4.2"
hooks = [{ id = "codespell" }]
[[repos]]
repo = "https://github.com/JoC0de/pre-commit-prettier"
rev = "v3.8.1"
hooks = [{ id = "prettier", types_or = ["css", "javascript", "json", "scss", "ts", "yaml"] }]
[[repos]]
repo = "https://github.com/rvben/rumdl-pre-commit"
rev = "v0.1.67"
hooks = [{ id = "rumdl" }, { id = "rumdl-fmt" }]
[[repos]]
repo = "https://github.com/zizmorcore/zizmor-pre-commit"
rev = "v1.23.1"
hooks = [{ id = "zizmor" }]
[[repos]]
repo = "https://github.com/astral-sh/uv-pre-commit"
rev = "0.11.4"
hooks = [{ id = "uv-lock" }]
[[repos]]
repo = "local"
hooks = [
{
id = "ty",
name = "ty",
entry = "uv run ty check",
language = "system",
types = ["python"],
stages = ["pre-push"],
},
{
id = "pytest",
name = "pytest",
entry = "uv run pytest",
pass_filenames = false,
language = "system",
stages = ["pre-push"],
}
]