Developer’s guide#
If you want to download the HydroMT-Delft3DFM plugin directly from git to easily have access to the latest developments or make changes to the code you can use the following steps.
Install#
First, install Pixi: https://pixi.prefix.dev/latest/installation
Then, clone the HydroMT-Delft3DFM plugin git repo from
github, then navigate into the
the code folder (where the pyproject.toml is located):
$ git clone https://github.com/Deltares/hydromt_delft3dfm.git
$ cd hydromt_delft3dfm
If git is not recognized as a command, first install Git from https://git-scm.com/install. VSCode and PyCharm should be bundled with a git extension so a manual installation is not always necessary.
Then, create and activate a new pixi environment. This includes a developers installation of hydromt_delft3dfm and several environments as specified in pyproject.toml:
$ pixi install
Test#
Running the tests can be done within any of the environment specified in the pyproject.toml (defaults to default):
$ pixi run -e default test
$ pixi run -e default pytest
Updating the lockfile#
If you add any dependencies or change anything in the package configuration, you have to update the lockfile. This is also done (if needed) when running other pixi commands:
$ pixi lock
Generating the docs#
Generating the docs is added as a pixi task, which executes sphinx-build:
$ pixi run docs-build
If any developer’s information is missing, it might be documented in the hydromt developer’s guide.