Contributing
We welcome the usage of the modelling framework by all those interested and encourage them to work with us to develop it further.
Bug reports
When reporting a bug please include:
Your operating system name and version.
Any details about your local setup that might be helpful in troubleshooting.
Detailed steps to reproduce the bug.
Development
To set up TLOmodel for local development:
Fork TLOmodel (look for the “Fork” button). If you have write access to this main repository, you can skip this step and clone it directly in step 2.
Clone your fork locally:
git clone git@github.com:your_name_here/TLOmodel.git
Create a branch for local development:
git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
When you’re done making changes, run all the checks, doc builder and spell checker with tox one command:
tox
Commit your changes and push your branch to GitHub:
git add . git commit # Write a description of your changes in the editor and save git push origin name-of-your-bugfix-or-feature
Submit a pull request through the GitHub website.
Pull Request Guidelines
If you need some code review or feedback while you’re developing the code just make the pull request.
For merging, you should:
Include passing tests (run
tox
) [1].Update documentation when there’s new API, functionality etc.
Add yourself to
authors.rst
.
Tips
To run a subset of tests:
tox -e py36 -- pytest -k test_myfeature
To run all the test environments in parallel (you need to pip install detox
):
detox