Skip to content

VictorF13/cookiecutter-default-lib

Repository files navigation

Cookiecutter Default Library Template

License: MIT

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.

Features

  • Pre-generation hook verifies uv, git, and Python 3.14.
  • Modern pyproject.toml configuration with uv and prek defaults using ty and ruff.

Installation

Install Cookiecutter:

uv tool install cookiecutter

Ensure 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"

Usage

Generate a new project:

cookiecutter gh:VictorF13/cookiecutter-default-lib

Answer the prompts and a skeleton library will be created.

Documentation

This repository is the documentation for the template. For more on Cookiecutter, see the official docs.

Changelog

Pull requests and issues are welcome, but this template is primarily for my personal use.

Credits

Created and maintained by VictorF13. Inspired by Cookiecutter and the broader Python packaging ecosystem.

License

Distributed under the MIT License.

About

This is a simple cookiecutter template to use when building a library that sets up modern Python tools.

Resources

License

Stars

Watchers

Forks

Contributors