Skip to content

Files

Latest commit

aa256e2 · May 21, 2024

History

History
42 lines (29 loc) · 1.12 KB
·

README.md

File metadata and controls

42 lines (29 loc) · 1.12 KB
·

Template for Python-based repositories

Prerequisites

  • Python
  • Poetry
  • GNU Make
  • Trunk.io
  • Pyenv (optional)

If you have not yet installed Trunk.io on your machine, run make install_trunk at the root of this project to install locally (works for Mac & Linux systems).

Getting started

  1. First things first, find all instances of REPO_NAME in this repo and replace them with the name of your repository.
  2. Run make init to move the workflows folder under the .github folder as initialise Trunk.

Configuring Trunk

Read trunk.md.

Create your virtual environment

To bootstrap the repo using Pyenv, run make setup_with_pyenv.

Configure Pyright

Run trunk actions enable configure-pyright to configure Pyright to work with your new repository.

If you prefer to use Pyenv, you'll need to add a 'venv' key with the value of REPO_NAME to your pyproject.toml file, under the Pyright section. If this is omitted, Trunk.io will assume you are using Poetry virtual environments instead.

[tool.pyright]
venv = "REPO_NAME"