2 KiB
Developer guide
Links
- Complex-routing walkthrough
- Router architecture
- Topological routing
- Routing diagnostics
- Benchmarks
- Benchmark fixtures
- Public API
Check a change
- From the repository root, run
uv syncto install development dependencies. Activate.venvor prefix commands withuv run. - Run
python -m pytestfor the correctness suite andruff check inire scriptsfor lint. Usepython -m pytest -m "not routing_corpus"for a shorter local check. - For a cleanup that should preserve paths, use the same fixtures and options in both revisions. Compare the relevant route results and traces.
- For a policy or budget change, start with a case that exhibits the behavior. Compare verified IDs, cost, and work under the same benchmark profile. Check the corpus and related holdouts before adopting the change.
Build release archives with uv build. The wheel contains the runtime. The source archive also includes tests and fixtures. Smoke-test the wheel outside the checkout on Python 3.11 with Shapely 2.1.0 and GEOS 3.10 or newer, once with NumPy 1.26 and once with NumPy 2.x.
Regenerate documentation figures
Run python -m scripts.render_documentation_figures to regenerate the guides, the complex-routing walkthrough, and the advanced example gallery in docs/figures. Pass --output-dir /tmp/inire-figures to preview them in a separate directory.
The gallery and walkthrough use the checked-in layout data. The numbered examples save their own plots in examples/.
When editing a guide, state which inputs or earlier example a reader needs to follow a linked section. Run affected examples, check the links and figures, and preserve existing heading anchors.