Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VARIANT=3.13-bookworm
ARG VARIANT=3.14-trixie
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}

ARG USERNAME=vscode
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
app:
build:
args:
VARIANT: 3.13-bookworm
VARIANT: 3.14-trixie
context: ..
dockerfile: .devcontainer/Dockerfile
command: sleep infinity
Expand All @@ -18,3 +18,4 @@ volumes:
python_template_cache: null
python_template_commandhistory: null
python_template_extensions: null

2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You are a Python developer who writes clean, decoupled code with clear separatio

## Project Overview

- **Python Version:** 3.13
- **Python Version:** 3.14
- **Package Manager:** uv (ALWAYS use `uv run` prefix)
- **Linting:** prek, ruff
- **Testing:** pytest (functions, not classes)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# python_template

![CI](https://github.com/martgra/python_template/actions/workflows/ci.yaml/badge.svg?branch=main)
![Python](https://img.shields.io/badge/python-3.13%2B-blue?logo=python&logoColor=white)
![Python](https://img.shields.io/badge/python-3.14%2B-blue?logo=python&logoColor=white)
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-orange.json)](https://github.com/copier-org/copier)

A solid project template for Python.

## ✨ Features

- **Modern Python** – Requires Python β‰₯ 3.13.
- **Modern Python** – Requires Python β‰₯ 3.14.
- **Dependency management with uv** – Fast dependency installation and lock file management.
- **Quality tools**
- Ruff formats and lints code
- Pylint performs deeper static analysis
- Deptry detects unused, missing and transitive dependencies
- Vulture finds dead code.
- Ty for static type-checking
- **Secret scanning with detect-secrets** - Prevent secrets getting commited and pushed.
- **Git hooks with Prek** – Automated quality checks on every commit and push.
- **Automated CI/CD** – GitHub Actions run all Prek hooks on pull requests and pushes to ensure code quality.
Expand Down Expand Up @@ -43,7 +44,7 @@ Makefile # Common tasks (test, lint, format, etc.)
.github/workflows/ # CI/CD workflows
```

Python β‰₯ 3.13 is required locally. The dev container uses Python 3.13.
Python β‰₯ 3.14 is required locally. The dev container uses Python 3.14.

## Git Hooks (Prek)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "python_template"
version = "0.1.0"
description = ""
authors = [{ name = "User Name", email = "you@example.com" }]
requires-python = ">=3.13"
requires-python = ">=3.14"
readme = "README.md"
dependencies = []

Expand Down
Loading
Loading