Skip to content

Contributing

Issues and pull requests are more than welcome.

dev install

git clone https://github.com/developmentseed/fio-stac.git
cd fio-stac
python -m pip install -e .["test","dev","numpy"]

You can then run the tests with the following command:

python -m pytest --cov fio_stac --cov-report term-missing

pre-commit

This repo is set to use pre-commit to run isort, flake8, pydocstring, black ("uncompromising Python code formatter") and mypy when committing new code.

pre-commit install

Docs

git clone https://github.com/developmentseed/fio-stac.git
cd fio-stac
python -m pip install -e .["doc"]

Create API docs

pdocs as_markdown --output_dir docs/docs/api/ --exclude_source --overwrite fio_stac.stac

Hot-reloading docs:

mkdocs serve

To manually deploy docs (note you should never need to do this because Github Actions deploys automatically for new commits.):

mkdocs gh-deploy -f docs/mkdocs.yml