Contributing¶
Thanks for considering contributing to RITC! Your contributions are greatly appreciated, and help make RITC a better tool for everyone in the Rotman community.
Setting up Your Development Environment¶
Fork the RITC repository on GitHub.
Clone your fork locally:
git clone git@github.com:AussieSeaweed/ritc.gitSetup virtual environment:
python -m venv venvActivate the virtual environment:
source venv/bin/activateInstall requirements:
pip install -r requirements.txtCreate a branch for your changes:
git checkout -b branch-name
Making Changes¶
When making changes, please follow these guidelines:
Always write your code in compliance with PEP8.
Write unit tests for your changes, and make sure all tests pass before submitting a pull request.
Document your changes in the code and update the README file if necessary.
After making changes, please validate your changes.
Run static type checking with
--strictflag:mypy --strict ritcRun style checking:
flake8 ritcRun unit tests:
python -m unittestRun doctests:
python -m doctest ritc/*.py
Submitting a Pull Request¶
Commit your changes:
git commit -am 'Add some feature'Push to the branch:
git push origin branch-nameSubmit a pull request to the
mainbranch in the RITC repository.
Before submitting your pull request, please make sure the mypy static type
checking with --strict flag, flake8, doctests, unit tests pass, and your
code adheres to PEP8.
After Your Pull Request Is Merged¶
After your pull request is merged, you can safely delete your branch and pull the changes from the main repository:
Delete the remote branch on GitHub:
git push origin --delete branch-nameCheck out the main branch:
git checkout mainDelete the local branch:
git branch -d branch-nameUpdate your main with the latest upstream version:
git pull upstream main