Contributing¶
earthkit-hydro is an open-source project, and contributions are highly welcomed and appreciated.
The code is hosted on GitHub.
Development workflow¶
Fork the repository on GitHub
Clone the fork to your local machine
Create a virtual environment and install the package in development mode
Create a new branch for your changes
Make your changes and commit them with a clear message
Run tests to ensure everything is working correctly
Push your changes to your fork on GitHub
Open a pull request against the develop branch of the main repository
Code style¶
This project uses ruff, black, isort and flake8 for code styling and formatting. To handle these automatically, you can use pre-commit hooks. To set them up, run:
pip install pre-commit
pre-commit install
Testing¶
To run the tests, you can use pytest. Make sure you have all dependencies installed, then simply run:
pytest