Skip to content

Contributing

Issues and pull requests are more than welcome: github.com/cogeotiff/rio-tiler/issues

AI Use Policy

You may use AI tools to assist your contributions. You are fully responsible for everything you submit.

AI tools are part of modern development workflows and contributors may use them. However, all contributions must meet rio-tiler quality standards regardless of how they were created.

Ref: github.com/cogeotiff/.github/blob/main/ai-contribution-policy.md

Guidelines

AI-assisted development is acceptable when used responsibly. Contributors must:

  • Test all code thoroughly. Submit only code you have verified works correctly.
  • Understand your contributions. You must be able to explain code you submit.
  • Write clear, concise PR descriptions in your own words.
  • Use your own voice in GitHub issues and PR discussions.
  • Take responsibility for code quality, correctness, and maintainability.

Note: Submitting AI-generated code with little thought behind it isn't much help. Maintainers have the same state-of-the-art models and can just generate a fix themselves, often faster than reviewing yours. Just create an issue instead.

Unacceptable Submissions

Pull requests and issues can be closed without review if they contain:

  • Untested code
  • Verbose AI-generated descriptions
  • Evidence the contributor doesn't understand the submission
  • Broken deployments or failing tests
  • Or even if the maintainers just suspect it being generated by AI and consider it adding noise instead of help

Using AI to assist learning and development is encouraged. Using it to bypass understanding or submit work you cannot explain is not.

Development

dev install

We recommand using uv as project manager for development.

See docs.astral.sh/uv/getting-started/installation/ for installation

git clone https://github.com/cogeotiff/rio-tiler.git
cd rio-tiler

uv sync

You can then run the tests with the following command:

uv run pytest --cov rio_tiler --cov-report term-missing
Performance tests
uv run --group performance pytest tests/benchmarks/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-sort 'min'

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.

uv run pre-commit install

Docs

git clone https://github.com/cogeotiff/rio-tiler.git
cd rio-tiler

Hot-reloading docs:

uv run --group docs mkdocs serve -f docs/mkdocs.yml

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

uv run --group docs mkdocs gh-deploy -f docs/mkdocs.yml