-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprek.toml
More file actions
60 lines (53 loc) · 1.12 KB
/
prek.toml
File metadata and controls
60 lines (53 loc) · 1.12 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
default_install_hook_types = ["pre-commit", "pre-push"]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-json", priority = 0 },
{ id = "check-toml", priority = 0 },
{ id = "check-yaml", priority = 0 },
{ id = "end-of-file-fixer", priority = 0 },
{ id = "trailing-whitespace", priority = 0 },
]
[[repos]]
repo = "local"
[[repos.hooks]]
id = "typecheck"
name = "TypeScript typecheck"
language = "system"
entry = "pnpm typecheck"
pass_filenames = false
always_run = true
priority = 0
[[repos.hooks]]
id = "test"
name = "Vitest tests"
language = "system"
entry = "pnpm test"
pass_filenames = false
always_run = true
priority = 0
[[repos.hooks]]
id = "csp-hash"
name = "CSP hash verification"
language = "system"
entry = "node scripts/verify-csp-hash.mjs"
pass_filenames = false
always_run = true
priority = 0
[[repos.hooks]]
id = "waf"
name = "WAF smoke tests"
language = "system"
entry = "pnpm test:waf"
pass_filenames = false
always_run = true
priority = 0
[[repos.hooks]]
id = "e2e"
name = "Playwright E2E tests"
language = "system"
entry = "pnpm test:e2e"
pass_filenames = false
always_run = true
stages = ["pre-push"]
priority = 0