Skip to the content.

Python Project Template

This is a template repository for python project.

check GitHub document aboud template repository.

CI/CD

Python package readthedocs build status pre-commit CodeQL License: MIT PyPI version Github pages

for detail about badges, see

This project is integrated with ./scripts/ci.sh
You should run the script every time before git commit.

docker environment

Use docker to avoid annoying environment conflicts.
First, you must set the project name in docker/.env file.
then you can run docker-compose up -d command to build an docker image with default Dockerfile.

$ cd docker \
    && docker-compose up -d

for details about docker, see official documentations

Documenting

You can use documenting tools like

and host it on readthedocs

Python Project Template ‘s documentation

sphinx

shpinx-apidoc

generate document with sphinx-apidoc command. script

configurations (todo)

sphinx extensions https://www.sphinx-doc.org/en/master/usage/extensions/index.html

napoleon https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#module-sphinx.ext.napoleon

numpy style https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard

google style https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings

publish package to Pypi

hit this command on terminal to publish the current version to Pypi.

$ ./scripts/publish.sh

Quick Start using this template.