This repository serves as a template for creating new Python repositories with modern tooling. It is configured with uv for dependency management and ruff for linting/formatting.
- Dependency Management: Uses
uvfor fast package management. - Linting & Formatting: configured with
ruff. - Testing:
pytestwith coverage reports. - Helper Scripts:
bin/lint: Runs formatters and linters.bin/ci: Runs the full CI suite (lint + tests).
- GitHub Actions: integrated CI pipeline.
Follow the official installation guide to install uv.
git clone https://github.com/mohilpatel25/template-repository.git
cd template-repositoryuv syncWe provide helper scripts to make development easier:
-
Run all checks (Lint + Test):
./bin/ci
-
Run Linting only:
./bin/lint
-
Run Tests manually:
uv run pytest
- Dependencies: Add new dependencies using
uv add <package>. - CI/CD: Modify
.github/workflows/ci.ymlto adjust the pipeline. - Tools: Configure tools in
pyproject.toml.