Contribute#
Warning
You are reading the HydroModPy v1.0 documentation, the version described in
the HESS technical note
(preprint). The v1.0 branch
is the reference cited by the paper and still receives fixes. For the latest
development version, see HydroModPy v2 on main:
https://docs.hydromodpy.fr/main/
The v1.0 branch stays available as the citable reference for the paper and
accepts bug fixes and documentation updates. New features and active development
happen on the v2 codebase on main. Pick your target accordingly:
Bug fix or doc update for the published v1.0 – branch from
v1.0and open a pull request againstv1.0.New feature or larger change – work on the v2 codebase on
main.
Set up the environment#
git clone https://github.com/HydroModPy/HydroModPy.git
cd HydroModPy
git checkout v1.0
pip install -e '.[docs]'
Run the tests before submitting (if you modify modelling code) and rebuild the docs to check for warnings:
pytest
make -C docs html
Coding guidelines#
Target Python 3.11+ and keep type hints where practical.
Prefer
toolboxhelpers over duplicating raster or folder logic.Add docstrings for public methods/classes and keep parameter names consistent with existing modules.
Documentation workflow#
Update the relevant
.rstpages plus the notebooks or scripts you touched.Preview locally with
make -C docs html(built fromdocs/source).Run
pip install -e '.[docs]'after changing the doc extras.
The v1.0 documentation is published automatically to
https://docs.hydromodpy.fr/v1.0/ when the v1.0 branch is updated.
Submitting changes#
Ensure
git statuscontains only the files related to your change.Push your branch to GitHub and open a pull request against
v1.0(fixes) ormain(new development).Mention reviewers if the change affects modelling outputs or user-visible workflows.