Skip to content

Python project template with a starting structure, CI/CD. linting, testing, and code coverage analysis

License

Notifications You must be signed in to change notification settings

viperior/python-project-template

Repository files navigation

python-project-template

This is a template for Python projects that provides a starting structure and a set of universally useful CI/CD configurations.

test

What is this for?

This template can be used as a starting point for new Python projects to get up and running quickly with a standard set of CI/CD configurations and an organized project structure.

Operation Solution Choice
Linting flake8, pylint
Testing pytest
Building setuptools
Dependency management pip-tools, dependabot
Additional features changelog, example MIT license, dependabot configuration

How do I build it?

python -m build

How do I run it?

python -m pip install -r requirements.txt
python -m callable

How do I test it?

python -m pytest

Project structure

mainpackage/
    subpackage/
        __init__.py
        samplemodule.py
        tests/
            __init__.py
            test_one.py
            test_two.py

Resources