Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 983 Bytes

File metadata and controls

55 lines (37 loc) · 983 Bytes

Contributing

Thanks for contributing to DifferentialLab.

Setup

pip install -e ".[dev]"

Optional documentation toolchain:

pip install -e ".[docs]"

Before opening a PR

  1. Run tests:
pytest
  1. Run lint checks:
ruff check src tests
  1. If typing checks are used in your workflow:
mypy src
  1. Update docs for user-visible changes:
  • README.md
  • docs/ pages
  • API refs if public interfaces changed

Plugin contributions (complex_problems)

If you add a plugin:

  • implement package structure (problem.py, ui.py, solver.py, result_dialog.py)
  • register it in src/complex_problems/problem_registry.py
  • add solver + registry tests
  • update docs/complex-problems.md and docs/api/complex_problems.rst

Style

  • Keep numerical kernels separated from GUI code.
  • Validate UI inputs before solver execution.
  • Expose structured result dataclasses with explicit metadata and magnitudes.