Contributing¶
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Environment setup¶
Nothing easier!
Fork and clone the repository, then:
cd gbsa-pipeline
pixi install -e dev
pixi run -e dev pre-commit-install
You now have the dependencies installed in a pixi environment. Common commands:
- Run the app:
pixi run -e dev gbsa-pipeline [ARGS...] - Format:
pixi run -e dev format - Checks:
pixi run -e dev check - Tests:
pixi run -e dev test - Full CI set:
pixi run -e dev ci - Pre-commit (all files):
pixi run -e dev pre-commit-run
Tasks¶
Commands and tasks are exposed through pixi (see pyproject.toml under tool.pixi.tasks).
Development¶
As usual:
- create a new branch:
git switch -c feature-or-bugfix-name - edit the code and/or the documentation
Before committing:
- run
pixi run -e dev formatto auto-format the code - run
pixi run -e dev checkto check everything (fix any warning) - run
pixi run -e dev testto run the tests (fix any issue) - if you updated the documentation or the project dependencies:
- run
pixi run -e dev docs - go to http://localhost:8000 and check that everything looks good
- run