Developer Workflow: Local Dev, Test, Debug¶
This guide summarizes a practical day-to-day workflow for Edgy projects.
1. Run Docs While Building Features¶
This serves docs with live reload and keeps generated markdown up to date from docs + docs_src.
2. Run Tests¶
For a specific test target:
3. Verify Types and Lint¶
4. Validate Migration State¶
5. Debug Common Runtime Issues Quickly¶
If you see lifecycle warnings:
- verify registry/database scope in code (
async with registry:orwith registry.with_async_env():), - confirm app discovery settings (
--app,EDGY_DEFAULT_APP, or preload setup).
6. Run Benchmark Guardrails for Performance-Sensitive Changes¶
When validating against CodSpeed-compatible behavior:
Workflow Map¶
flowchart LR
A["Code changes"] --> B["Run tests and type checks"]
B --> C["edgy check/current"]
C --> D["Update docs and examples"]
D --> E["hatch run docs:build"]