Issues and pull requests are more than welcome.
We recommand using uv as project manager for development.
See https://docs.astral.sh/uv/getting-started/installation/ for installation
dev install
git clone https://github.com/developmentseed/morecantile.git
cd morecantile
uv sync --extra rasterioYou can then run the tests with the following command:
uv run pytest --cov morecantile --cov-report term-missing -s -vvThis repo is set to use pre-commit to run isort, flake8, pydocstring, black ("uncompromising Python code formatter") and mypy when committing new code.
uv run pre-commit installuv sync --group benchmark
uv run pytest tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-sort 'min'git clone https://github.com/developmentseed/morecantile.git
cd morecantile
uv sync --group docsHot-reloading docs:
uv run mkdocs serve -f docs/mkdocs.ymlTo manually deploy docs (note you should never need to do this because Github Actions deploys automatically for new commits.):
uv run mkdocs gh-deploy -f docs/mkdocs.yml