Warning: This branch contains the unmaintained CookieCutter version of the Pyt2 template. Please refer to the main branch for the most up-to-date template (which uses Copier)
My second attempt at making a Python template.
I've seen many other projects like this but I've never seen any of them follow the pattern I want.
- 📂 Structure and project style
- 🎨 Uses the linters (checked via GitHub Actions
)
- 🧪 Hypothesis and Pytest for testing
- 🎵 Uses Poetry to manage the project
- 🎶 Has Poe tasks
Uses GitHub Actions for CI
- ✅ Cached workflows
- 🐍 Tests for Python 3.8+ on 🐧 Linux, 🍎 Mac, and 🏁 Windows.
- 🔖 Automatically generate and upload distribution files on tagged releases
- (Optional) 😸 Documentation via Sphinx
- 🎨 Uses the linters (checked via GitHub Actions
- 🖨️ Generation features
- 🔒 Pre-computed lockfile (
poetry.lock) with up-to-date dependencies via CI ()
- 🔖 Has a
test_version.pywhich will test if the__version__metadata variable in the package is equal to the one in thepyproject.toml - 🤖 Optional post-generation hooks. Runs
git initand/orpoetry install - (Optional) 🎬
__main__.pyand[tool.poetry.scripts]entry point generation (for applications)
- 🔒 Pre-computed lockfile (
cookiecutter gh:ThatXliner/pyt2✨ Magic
Pronunciation: pit-too Why this is the name: Python Template 2
But you can fork this and modify the default license in the template anyways. This template, however, is released to the Public Domain.