Development¶
Development Setup¶
git clone https://github.com/Digitalized-Energy-Systems/mango-optimization
cd mango-optimization
pip install -e ".[dev,docs]"
Running Tests¶
pytest
With coverage:
pytest --cov=distributed_resource_optimization --cov-report=term-missing
Linting¶
ruff check .
ruff format --check .
Building the Docs¶
pip install -e ".[docs]"
make -C docs html
# Open docs/build/html/index.html
Contributing¶
Fork the repository on GitHub.
Create a feature branch:
git checkout -b feature/my-featureMake your changes and add tests.
Ensure
pytestandruff check .both pass.Open a pull request against
main.
Please follow the existing code style (line length ≤ 100, type hints on public APIs, Google-style docstrings).