A Cookiecutter template for bootstrapping a modern Python library project. This setups a simple library with Python 3.14, ruff for linting and formatting, ty for type checking, and prek for pre-commit hooks, as well as the necessary hooks for those tools.
- Pre-generation hook verifies
uv,git, and Python 3.14. - Modern
pyproject.tomlconfiguration withuvandprekdefaults usingtyandruff.
Install Cookiecutter:
uv tool install cookiecutterEnsure uv, git, and Python 3.14 are available.
Configure Git with your user.name and user.email before running the template
so the initial commit can be created:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"Generate a new project:
cookiecutter gh:VictorF13/cookiecutter-default-libAnswer the prompts and a skeleton library will be created.
This repository is the documentation for the template. For more on Cookiecutter, see the official docs.
Pull requests and issues are welcome, but this template is primarily for my personal use.
Created and maintained by VictorF13. Inspired by Cookiecutter and the broader Python packaging ecosystem.
Distributed under the MIT License.