Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
78 lines (62 loc) · 1.48 KB
/
Copy pathprek.toml
File metadata and controls
78 lines (62 loc) · 1.48 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
# 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
[[repos]]
repo = "builtin"
[[repos.hooks]]
id = "no-commit-to-branch"
args = ["--branch", "dev"]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "codespell"
name = "codespell"
entry = "uv run --frozen codespell --toml pyproject.toml"
language = "system"
types = ["text"]
[[repos.hooks]]
id = "ruff-check"
name = "ruff check"
entry = "uv run --frozen ruff check --force-exclude --fix"
language = "system"
types_or = ["python", "pyi"]
require_serial = true
[[repos.hooks]]
id = "ruff-format"
name = "ruff format"
entry = "uv run --frozen ruff format --force-exclude"
language = "system"
types_or = ["python", "pyi"]
require_serial = true
[[repos]]
repo = "https://github.com/astral-sh/uv-pre-commit"
rev = "0.11.16"
[[repos.hooks]]
id = "uv-lock"
args = ["--check"]
[[repos]]
repo = "https://github.com/google/yamlfmt"
rev = "v0.21.0"
[[repos.hooks]]
id = "yamlfmt"
args = ["-formatter", "retain_line_breaks=true"]
[[repos]]
repo = "https://github.com/ComPWA/taplo-pre-commit"
rev = "v0.9.3"
[[repos.hooks]]
id = "taplo-format"
[[repos]]
repo = "local"
[[repos.hooks]]
id = "mypy"
name = "mypy"
entry = "uv run --frozen mypy"
language = "system"
types_or = ["python", "pyi"]
require_serial = true
[[repos]]
repo = "https://github.com/zizmorcore/zizmor-pre-commit"
rev = "v1.24.1"
[[repos.hooks]]
id = "zizmor"
args = ["--pedantic"]