-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
74 lines (71 loc) · 1.42 KB
/
Copy pathprek.toml
File metadata and controls
74 lines (71 loc) · 1.42 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
[[repos]]
repo = "local"
hooks = [
{
id = "branch-guard",
name = "Reject work on protected branches",
language = "system",
entry = "sh scripts/check-branch.sh",
stages = ["pre-commit", "pre-push"],
always_run = true,
pass_filenames = false,
},
]
[[repos]]
repo = "local"
hooks = [
{
id = "fmt",
name = "cargo fmt",
language = "system",
entry = "cargo fmt -- --check",
files = "\\.rs$",
pass_filenames = false,
},
{
id = "clippy",
name = "cargo clippy",
language = "system",
entry = "cargo clippy --all-targets --all-features -- -D warnings",
files = "\\.rs$",
pass_filenames = false,
},
{
id = "docs-check",
name = "panache docs check",
language = "system",
entry = "panache lint --force-exclude .",
files = "\\.md$",
pass_filenames = false,
},
{
id = "whitespace-check",
name = "git diff --check",
language = "system",
entry = "git diff --check",
pass_filenames = false,
},
]
[[repos]]
repo = "local"
hooks = [
{
id = "pre-push-ci",
name = "just pre-push (path-routed)",
language = "system",
entry = "just pre-push",
stages = ["pre-push"],
pass_filenames = false,
},
]
[[repos]]
repo = "local"
hooks = [
{
id = "conventional-commit-check",
name = "Conventional Commit Check",
language = "system",
entry = "cog verify --file",
stages = ["commit-msg"],
},
]