Development¶
The code is hosted on GitHub: ecmwf/earthkit-climate. Testing, bug reports and contributions are highly welcomed and appreciated. Feel free to fork and submit your PRs against the develop branch.
Dependencies¶
Install development dependencies by with extras during installation of earthkit-climate:
pip install -e .[dev]
Available extras:
dev: Development utilities. Includesdocs,docs-notebooks,testandtest-benchmarkdependencies.docs: Building the documentation.docs-notebooks: Running the notebooks included with the documentation.test: Running the unit tests.test-benchmark: Running the performance benchmark (part of the integration tests). Includestestdependencies.
Quality Assurance¶
Run the suite of unit tests:
pytest
Run the suite of integration tests:
pytest tests/integration -m integration
Run the type checker:
MYPYPATH=src python -m mypy src tests/unit/
Run the pre-commit hooks:
pre-commit run --all-files
Documentation¶
Build the documentation:
sphinx-build -M html docs docs/_build