A template project for quickly generating python project boilerplate code.
This is not a beginners project sturcture guide, for that see pypa/sampleproject. This is more of a quick setup tool for starting projects according to my favourite best practices.
Use this checklist below to get started:
- Rename modules and package
- name in
setup.py
:name="<package_name>"
- package name in the source folder:
src/<package_name>
- name in tox.ini:
--cov=<package_name>
- name in
- Configure your python versions:
- Select your python versions in the tox.ini
- Select your python versions in the
.github/workflows/standards.yaml
- Setup local environment:
- (ubuntu) Run
sh .scripts/setup.py
to install template related tools. - (Optional) Setup development install
python setup.py develop
- (ubuntu) Run
- (Optional) Test that everything is working
- Run
tox
- Run
python -m template
- Run
All tests are written in with pytest. You can simply run the test suite with tox:
$ tox