HOW TO USE THIS TEMPLATE
- Click on 'Use this template' or go to https://github.com/rochacbruno/python-project-template/generate
- Wait until the first run of CI finishes (Github Actions will process the template and commit to your new repo)
- If you want coverage reports and automatic release to PyPI
On repository
settings->secrets
add yourPIPY_API_TOKEN
andCODECOV_TOKEN
(get the tokens on respective websites) - Read the file
CONTRIBUTING.md
- Then clone your new project and start coding!
What is included?
- A full feature Makefile with common targets to:
- lint all python files
- run all tests
- run all tests and coverage report
- format code using black
- run mypy
- release to github and pypi
- create a virtualenv and install project for development
- A basic project structure with
.gitignore
- Github Actions CI
setup.py
with common parameters- Changelog generation
- basic test structure using
pytest
- Entry point to run
$ project_name
- Entry point to run
$ python -m project_name
- Basic documentation structure using
mkdocs
- Integration with
codecov
andpypi
Delete all lines above this ^^^
project_description
pip install project_name
from project_name import BaseClass
from project_name import base_function
BaseClass().base_method()
base_function()
$ python -m project_name
#or
$ project_name
Read the CONTRIBUTING.md file.