-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
24 lines (23 loc) · 746 Bytes
/
Copy pathlefthook.yml
File metadata and controls
24 lines (23 loc) · 746 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
pre-commit:
parallel: true
commands:
fmt:
run: cargo fmt --all -- --check
clippy:
run: cargo clippy --all-targets -- -D warnings
actionlint:
glob: ".github/workflows/*.{yml,yaml}"
run: actionlint {staged_files}
toml-lint:
glob: "*.toml"
run: taplo fmt --check {staged_files}
# When the togl-ffi FFI surface changes, regenerate the committed C header
# and stage it, so a stale togl.h can't be committed. Reuses the same
# `just gen-c-header` the CI drift gate runs. Requires `cargo install cbindgen`.
gen-c-header:
glob: "crates/togl-ffi/**"
run: just gen-c-header && git add crates/togl-ffi/include/togl.h
pre-push:
commands:
test:
run: cargo test