Skip to content
/ python-template Public template

A template project for quickly generating python project boilerplate code.

License

Notifications You must be signed in to change notification settings

Liamdoult/python-template

Repository files navigation

python-template

Python tests

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.

Checklist

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>
  • 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
  • (Optional) Test that everything is working
    • Run tox
    • Run python -m template

Testing

All tests are written in with pytest. You can simply run the test suite with tox:

$ tox

About

A template project for quickly generating python project boilerplate code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published