mflux dev environment
This repo expects macOS arm64 and prefers uv + justfile recipes.
When to Use
- You’re setting up the repo locally or diagnosing environment/setup issues.
- You need the canonical way to run lint/format/check/build/test.
Instructions
- Prereq:
just≥ 1.50 (brew install just). CI lints the justfile withjust --fmt --check; runjust fmt-justfileto auto-fix formatting. - Prefer justfile recipes:
- Install:
just install - Lint:
just lint - Format:
just format - Pre-commit suite:
just check - Build:
just build
- Install:
- Prefer
uv run ...for running Python commands to ensure the correct environment. - When running tests, keep
MFLUX_PRESERVE_TEST_OUTPUT=1enabled (the justfile test recipes already do this).
Type checking (ty)
- The type checker is astral's
ty, pinned exactly inpyproject.tomldev deps (mirrored in.pre-commit-config.yamland run in CI). Run it withjust typecheck(oruv run ty check). [tool.ty.rules]inpyproject.tomlcarries a one-time migration baseline (mypy → ty): every rule listed there had pre-existing violations and is set to"ignore", with violation counts in comments.- Planned burn-down: we intend to re-enable these rules piecemeal — delete one ignore line, fix all resulting
ty checkerrors, commit, repeat. Prefer starting with low-count rules. Do not add new ignore lines; new code must pass all rules not in the baseline.