Skip to content

Template repo with pre-commit checks and GitHub Actions for automated testing on PRs

License

Notifications You must be signed in to change notification settings

mohilpatel25/template-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Repository

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.

Features

  • Dependency Management: Uses uv for fast package management.
  • Linting & Formatting: configured with ruff.
  • Testing: pytest with coverage reports.
  • Helper Scripts:
    • bin/lint: Runs formatters and linters.
    • bin/ci: Runs the full CI suite (lint + tests).
  • GitHub Actions: integrated CI pipeline.

Setup Instructions

1. Install uv

Follow the official installation guide to install uv.

2. Clone the repository

git clone https://github.com/mohilpatel25/template-repository.git
cd template-repository

3. Install Dependencies

uv sync

Development

Running Tests and Linting

We 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

Customization

  • Dependencies: Add new dependencies using uv add <package>.
  • CI/CD: Modify .github/workflows/ci.yml to adjust the pipeline.
  • Tools: Configure tools in pyproject.toml.

About

Template repo with pre-commit checks and GitHub Actions for automated testing on PRs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published