Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Template repo for Python projects, especially those focusing on machine learning and/or deep learning.

License

Notifications You must be signed in to change notification settings

fkodom/python-repo-template

Repository files navigation

{{REPO_NAME}}

A simple template for Python projects, with CI/CD configured through GitHub Actions.

Usage

  1. Create a new repository, using this one as a template.
  2. Install and open Gemini CLI, then run the /templatize command:
    gemini run /templatize

Install

Note: For simplicity, I assume you are using uv, but this project is compatible with any virtual environment or package manager (pip, venv, poetry, pipenv, conda).

# Create and activate a new virtual environment
uv venv --python 3.12
source .venv/bin/activate

# Install development dependencies and pre-commit hoooks
uv sync --all-extras
pre-commit install

Tooling

Tool Description Runs on
ruff Code linter - git commit (through pre-commit)
- git push
- pull requests
ty Static type checker - git commit
- pull requests
pytest Unit testing framework - git push
- pull requests
twine $\dagger$ PyPI package uploader - New release (git tag)

$\dagger$ Requires enabling the publish.yaml workflow. To activate, move the file from .github/disabled-workflows/publish.yaml.disabled to .github/workflows/publish.yaml, and set a valid PyPI token as PYPI_API_TOKEN in the repo secrets.

Then tag a new release of this repo, and GHA will automatically build and publish a Python wheel (.whl) to PyPI.

About

Template repo for Python projects, especially those focusing on machine learning and/or deep learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages