Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
90 lines (74 loc) · 1.76 KB
/
Copy pathprek.toml
File metadata and controls
90 lines (74 loc) · 1.76 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
default_install_hook_types = ["pre-commit", "pre-push"]
exclude = { glob = [".venv/**"] }
[[repos]]
repo = "builtin"
[[repos.hooks]]
id = "trailing-whitespace"
stages = ["pre-commit"]
[[repos.hooks]]
id = "end-of-file-fixer"
stages = ["pre-commit"]
[[repos.hooks]]
id = "check-toml"
stages = ["pre-commit"]
[[repos.hooks]]
id = "check-yaml"
stages = ["pre-commit"]
[[repos.hooks]]
id = "check-merge-conflict"
stages = ["pre-commit"]
[[repos.hooks]]
id = "detect-private-key"
stages = ["pre-commit"]
[[repos.hooks]]
id = "check-added-large-files"
# Generated sources hold every kind's protocol members and the product table;
# `just check-generated` keeps them current.
exclude = "^src/quantype/(_generated\\.pyi|products\\.py)$"
stages = ["pre-commit"]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "prek-validate-config"
name = "prek validate-config"
language = "system"
entry = "uv run prek validate-config prek.toml"
files = "^prek\\.toml$"
pass_filenames = false
stages = ["pre-commit"]
[[repos.hooks]]
id = "ruff-check-fix"
name = "ruff check --fix"
language = "system"
entry = "uv run ruff check --fix"
files = "\\.pyi?$"
stages = ["pre-commit"]
[[repos.hooks]]
id = "ruff-format"
name = "ruff format"
language = "system"
entry = "uv run ruff format"
files = "\\.pyi?$"
stages = ["pre-commit"]
[[repos.hooks]]
id = "tombi-fmt"
name = "tombi fmt"
language = "system"
entry = "uv run tombi fmt"
files = "\\.toml$"
stages = ["pre-commit"]
[[repos.hooks]]
id = "tombi-check"
name = "tombi check"
language = "system"
entry = "uv run tombi check"
files = "\\.toml$"
stages = ["pre-commit"]
[[repos.hooks]]
id = "zizmor"
name = "zizmor"
language = "system"
entry = "uv run zizmor --offline ."
files = "^\\.github/workflows/.*\\.ya?ml$"
pass_filenames = false
stages = ["pre-commit"]