-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
29 lines (28 loc) · 749 Bytes
/
lefthook.yml
File metadata and controls
29 lines (28 loc) · 749 Bytes
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
pre-commit:
parallel: false
commands:
fmt-check:
run: cargo fmt --check
clippy:
run: cargo clippy --workspace -- -D warnings
typos:
run: typos
skip:
- run: "! which typos >/dev/null 2>&1"
pre-push:
parallel: false
commands:
10-rust-generate-frontend-types:
run: cargo test -p kajet-core -p kajet-parser --lib --no-fail-fast
20-frontend-typecheck:
run: cd frontend && deno task check
skip:
- run: "! which deno >/dev/null 2>&1"
30-frontend-build:
run: cd frontend && deno task build
skip:
- run: "! which deno >/dev/null 2>&1"
40-unused-deps:
run: cargo machete
skip:
- run: "! which cargo-machete >/dev/null 2>&1"