Python Boilerplate contains all the boilerplate you need to create a Python package.
Stable Release: pip install python_boilerplate
Development Head: pip install git+https://github.com/jdmoorman/python_boilerplate.git
>>> from python_boilerplate import Example
>>> a = Example()
>>> a.get_value()
10
If you use our work in an academic setting, please cite our paper:
TODO: readthedocs For more information, read the docs.
See CONTRIBUTING.md for information related to developing the code.
- Make sure the github repository initialized correctly at
https://github.com:jdmoorman/python_boilerplate.git
- Add branch protections to
master
- To protect from just anyone pushing to
master
- Go to your GitHub repository's settings and under the
Branches
tab, clickAdd rule
and select the settings you believe best. - Recommendations:
- Require pull request reviews before merging
- Require status checks to pass before merging
- To protect from just anyone pushing to
master
is for the most up-to-date development, very rarely should you directly commit to this branch. It is recommended to commit to development branches and make pull requests to master.- Your day-to-day work should exist on branches separate from
master
. Even if it is just yourself working on the repository, make a PR from your working branch tomaster
so that you can ensure your commits don't break the development head. GitHub Actions will run on every push to any branch or any pull request from any branch to any other branch. - It is recommended to use "Squash and Merge" commits when committing PR's. It makes each set of changes to
master
atomic and as a side effect naturally encourages small well defined PR's.