So you'd like to contribute to pysorter? There's a short procedure you'll need to follow before tackling an issue.
- Create a new issue for the functionality, or
- Comment on an existing issue
Now wait for the maintainer to reply in the affirmative. Then you can begin hacking!
- Fork the repository, and clone it to your machine.
- Create a virtual environment using one of the supported Python versions.
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- To ease development and testing, you can install pysorter as editable.
cd
intopysorter/
and exexute the followingpip install -e . pip install -e .[test] pip install -e .[develop]
- Activate your virtual environment
- Create a new branch to develop on
git checkout -b issue_78 develop
- Write some code
- Write some tests and run them
python3 setup.py test
- Check your coverage
python3 setup.py coverage
# open the coverage_report/index.html in your browser
- Commit your changes and push them up (many smaller commits are better than one big one)
git push origin issue_78 --set-upstream
- Create a pull request
- Wait for feedback from the maintainer.
- The coverage status should stay at 100%