This is a python template.
Project description
python-template
This project is an opinionated python template.
Usage
This project uses:
- poetry for dependency management and packaging.
- poethepoet for task running.
- pytest for testing.
- black for auto-formatting.
- mypy for static type checking.
- pre-commit for git hooks.
- ruff for linting.
- mkdocs for documentation.
Ensure you have installed the relevant dependencies before continuing.
Install dependencies
poetry install
Run tests
poetry run poe test
GitHub Actions Setup
Validation Workflow
CodeCov.io
The workflow is automatically setup to pass along coverage reports to CodeCov.io.
You must set the CODECOV_TOKEN
secret in your repository settings.
Otherwise, disable the routine in the .github/workflows/validate.yaml
file.
Publishing Workflow
Ensure you have Discussions enabled in your repository settings,
or remove discussion_category_name
from the .github/workflows/publish.yaml
file.
PyPi
The workflow is automatically setup to publish to PyPi.
You must set the POETRY_PYPI_TOKEN_PYPI
secret in your repository settings.
Otherwise, disable the routine in the .github/workflows/publish.yaml
file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_template_x-0.3.1.tar.gz
.
File metadata
- Download URL: python_template_x-0.3.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b457764b0000237fe93f448a98d6162dae7e61b40af9d9c2146dfc7597ba757 |
|
MD5 | eb24377eb55f70a3903a9423585d0f3a |
|
BLAKE2b-256 | 670110946f59bd9ba76f9f4b2f16d7a210e70861e2a549568d59b8c42f490719 |
File details
Details for the file python_template_x-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: python_template_x-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1711a3aa889f9e5c43e261642088ed5b73449977e01d7123e87c2a1f768d1638 |
|
MD5 | 8b8c68c9db8f9d48783fb5882eebb50b |
|
BLAKE2b-256 | d2f3c2425f9e1fad9b9a2531774b847506cad7cd92aa7b8229469e5ee6e5d163 |