Want to contribute to libthumbor? Welcome aboard.
This guide covers the basics for setting up your environment, validating changes, and preparing a pull request.
Fork the repository and clone your fork locally. If you need a refresher on that workflow, GitHub's fork documentation is a good place to start: http://help.github.com/fork-a-repo/.
Use Poetry so your local environment matches the project's tooling and CI.
- Python 3.10 or newer
- Poetry
Install the project and development dependencies with:
make setupRun the full local validation flow with:
make testYou can also run individual targets when you only need part of the suite:
make unit
make coverage
make black
make flake8
make isort-check
make pylintBefore opening a pull request:
- Rebase your branch on top of the latest
master - Run the relevant test and lint targets locally
- Keep the change focused and update tests when behavior changes
If you want to track the upstream repository as an extra remote:
git remote add libthumbor git://github.com/thumbor/libthumbor.gitTo update your branch with upstream master:
git pull libthumbor masterIf that pull brings in changes, run the test suite again before opening your pull request.