A trusted library of verified and referenced hydrometeorological calculations and derivations.
TODO
This project is licensed under the MIT license.
Contributions are welcome. Please feel free to submit a Pull Request.
- Clone the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please make sure your code passes all tests and follows the coding style before submitting a PR. See developer setup below for more information.
This is for active development on the hydrometlib package itself.
git clone https://github.com/NERC-CEH/hydrometlib.git
cd hydrometlibuv sync
source .venv/bin/activate
Linting uses ruff using the config in pyproject.toml
ruff check --fix
Formating uses ruff using the config in pyproject.toml which follows the default black settings.
ruff format .
Testing is done using pytest and tests are in the /tests directory.
pytest
Run below to setup the pre-commit hooks.
git config --local core.hooksPath .githooks/
This will set this repo up to use the git hooks in the .githooks/ directory.
The hook runs ruff format --check and ruff check to prevent commits that are not formatted correctly or have errors.
The hook intentionally does not alter the files, but informs the user which command to run.
For full documentation, visit https://nerc-ceh.github.io/hydrometlib/
To build the documentation locally:
# Install documentation dependencies (but they are included by default)
uv sync --group docs
# Build the documentation
cd docs
make html
# View documentation
open _build/html/index.htmlIf you use this software, please cite it using the metadata in CITATION.cff.
Built with Cookiecutter and the NERC-CEH/fdri-cookiecutter-pypackage template.