Skip to content

python template starter project

Notifications You must be signed in to change notification settings

kosanlabs/py-project-template

Repository files navigation

Py-project-template

Template for start new python project

Installation

You can install the package using python interactive package (PIP)

pip install -e .

for develop install

pip install -e ".[dev]"

Structure

Structure directory template

.
├── dev-requirements.txt
├── README.md
├── requirements.txt
├── setup.py
├── src
│   ├── __init__.py
│   └── welcome.py
├── structure.txt
└── tests
    └── test_welcome.py

Setting hooks

Setting hooks for better development using pre-commit by

pre-commit install

Publish on pypi

Important

Before publish, edit __version__ on src/__init__.py to matching the new version.

CI/CD

This template using Github Actions to automatically run test, and check code quality when PR is done on main.

On any pull request without publish, we use pre-commit and Github Action for code quality and tests.

About

python template starter project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages