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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_template_x-0.4.1.tar.gz.
File metadata
- Download URL: python_template_x-0.4.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f026645defee0b46dfbae25d76d39d12e111136d12aee0f44d1bdff30754d34b
|
|
| MD5 |
981a37e186af080d78e504f755d09acb
|
|
| BLAKE2b-256 |
0d3efd6b8acb1d8af5898fe51fcaabe39fd86561fe0720fcc346a182299734cc
|
File details
Details for the file python_template_x-0.4.1-py3-none-any.whl.
File metadata
- Download URL: python_template_x-0.4.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05aa516ce208bb3b68edc954952653201169fa4fec545f7977e888357147de48
|
|
| MD5 |
2a893a0e39dbefa51c4074d5ff949c60
|
|
| BLAKE2b-256 |
efcd4529c431861c2a297abd77adb237ea58d53b9b06ee8d8c793ac92b3c12a0
|