Thanks a lot for your interest to contribute to light-the-torch! All contributions are
appreciated, be it code or not. Especially in a project like this, we rely on user
reports for edge cases we didn't anticipate. Please feel free to
open an issue if you encounter
anything that you think should be working but doesn't.
If you are planning to contribute bug-fixes or documentation improvements, please go ahead and open a pull request (PR). If you are planning to contribute new features, please open an issue and discuss the feature with us first.
To start working on light-the-torch clone the repository from GitHub and set up the
development environment
git clone https://github.com/Slicer/light-the-torch
cd light-the-torch
virtualenv .venv --prompt='(light-the-torch-dev) '
source .venv/bin/activate
pip install doit
doit installEvery PR is subjected to multiple checks that it has to pass before it can be merged. The checks are performed through doit. Below you can find details and instructions how to run the checks locally.
light-the-torch uses ufmt to format Python
code, and flake8 to enforce
PEP8 compliance.
To automatically format the code, run
doit formatInstead of running the formatting manually, you can also add pre-commit hooks. By running
pre-commit installonce, an equivalent of doit format is run everytime you git commit something.
Everything that cannot be fixed automatically, can be checked with
doit lintlight-the-torch uses pytest to run the test
suite. You can run it locally with
doit test