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.2.2.tar.gz
.
File metadata
- Download URL: python_template_x-0.2.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944994045ce47960c17298927ef9271e54942e43ca1229642749b4c1d59feb9b |
|
MD5 | 885fe24812c85bf288c9bc1bba22a4ed |
|
BLAKE2b-256 | 763efa575576424f9952ec1f6af70c2e3260516c5f7d8c6691eac488a43e298d |
File details
Details for the file python_template_x-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: python_template_x-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91b79156b54247ede377fcdaee8d1b05048add5a5438876e90fe5c31ce4b1bf |
|
MD5 | 9421dea40c2bf6cba3e27bcc39352ac2 |
|
BLAKE2b-256 | b2271ea3d48bb730fda8ae08d6c3c807470beb2882b324a16a2f200b9061b479 |