GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dunnkers/python-uv-devcontainer: Python project setup using a Devcontainer and uv.

This repository was archived by the owner on Oct 30, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
src/example_project
src/example_project
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

python-uv-devcontainer

uv Ruff Open in Remote - Containers

Python project setup using a Devcontainer and uv.

Features

  • Devcontainer running Python 3.13
  • uv for dependency management and virtual environment management
  • ruff for formatting and linting
  • pytest for testing
  • GitHub Actions for CI/CD
  • Dockerfile for easy deployment

Setup

Getting started is easy. Follow these steps:

  1. Use this template

    Use this template and create new repository

    Create a new repository based on this template.

  2. Clone repo

    Clone repository

    Open the repo in VSCode.

  3. Reopen in Container

    Click the button in the popup upon opening the repo:

    Dev Containers: Reopen in Container

    Alternatively, enter Ctrl+Shift+P and select Dev Containers: Reopen in Container.

  4. Wait for setup to finish

    Upon opening the Devcontainer, setup will start. Wait for the setup to finish before continuing.

    Wait for postCreateCommand to finish
  5. Select Python interpreter

    Enter Ctrl+Shift+P and select Python: Select Interpreter.

    VSCode: Python Select Interpreter

    Select the venv (./.venv/bin/python).

  6. Enjoy 🫶

    You now have a fully configured Python development environment!

    alt text

    with uv:

    and pytest:

    UI Terminal
    alt text alt text

    ... and ruff:

    all readily available 🎉

Extras

  • CI/CD with GitHub Actions

    A workflow is already set up for you.

    GitHub Actions workflow for testing, formatting and linting a Python app with uv

    This workflow runs tests using pytest and formatting + linting using ruff. Dependencies are set up with uv.

  • Dockerfile

    A Dockerfile is provided for easy deployment. This Dockerfile uses the same base image as the Devcontainer, so you can be sure it will work in production.

About

Provided to you with ♡ by Jeroen Overschie.

About

Python project setup using a Devcontainer and uv.

jeroenoverschie.nl/python-devcontainer-with-uv/

Topics

astral-uvdevcontainerdevcontainer-featuresdevcontainer-templatedevcontainerspythonpython3ruffuv

Resources

Readme
Activity

Stars

9 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.