Developer guide
This guide describes principles and workflows for developers.
Setup
We recommend programming in a fresh virtual environment. You can set up the
conda environment and activate it
If you don't use conda, set up your preferred environment and run
Continuous integration
To standardize code style and enforce high quality, checks are carried out with
Github actions when you push. You can also run them locally, as they are managed
via make:
-
Run tests with
make test -
Run all linters with
make lint, or separately with:-
Run auto-formatting and import sorting with
make blackandmake isort -
Run linting with
make flake8 -
Run docstring checks with
make pydocstyle-checkandmake darglint-check
-
Documentation
We use the Google docstring
convention
and mkdocs which allows using markdown syntax in a docstring to achieve
formatting.