apirogov / python-app-template

A Python project template. Archived in favor of the fair-python-cookiecutter template.
https://github.com/Materials-Data-Science-and-Informatics/fair-python-cookiecutter
MIT License
4 stars 1 forks source link

python-app-template

Test Coverage Docs PyPIPkgVersion

A template with a reasonable basic setup, including:

Inspired by Hypermodern Python and blog posts like this. You can look there for more tools and other choices.

Setup

Development

This project uses Poetry for dependency management.

Clone this repository and run poetry install.

Run pre-commit install to enable pre-commit hooks for linting and sanity checks.

To locally generate documentation, run pdoc -o docs python_app_template.

To locally run tests and get coverage information, use pytest --cov.

To run the tests with different Python versions, run tox. For that, you should install the Python versions in the .python-version file. You can use pyenv to do that and switch between them as you please.