fabrica

hanna/fabrica

821 bytes
Raw
1# fabrica task runner. `just check` is the quality gate that MUST pass after
2# every unit of work. `nix flake check` is the superset.
3
4# List available recipes.
5default:
6 @just --list
7
8# The quality gate: format, check, lint, test. Run after every unit of work.
9check: fmt-check build clippy test
10
11# Verify formatting without modifying files.
12fmt-check:
13 cargo fmt --all -- --check
14
15# Format the workspace in place.
16fmt:
17 cargo fmt --all
18
19# Type-check the whole workspace, including tests and examples.
20build:
21 cargo check --workspace --all-targets
22
23# Lint with clippy, denying all warnings.
24clippy:
25 cargo clippy --workspace --all-targets -- -D warnings
26
27# Run the test suite.
28test:
29 cargo test --workspace
30
31# Run the full Nix gate (checks.{clippy,fmt,test,deny,doc}).
32flake-check:
33 nix flake check