Skip to content

ilyasotkov/vscode-devcontainer-python-cookiecutter

Repository files navigation

vscode-devcontainer-python-cookiecutter

This cookiecutter template generates code for a basic Python project in a Visual Studio Code Dev Container (devcontainer) environment.

Usage

cookiecutter https://github.com/ilyasotkov/python-vscode-devcontainer-bootstrap

Open the generated folder in VS Code, and you'll be prompted to re-open in Dev Container.

Or, after running "Remote-Containers: Install devcontainer CLI" from VS Code Command Palette, run

devcontainer open <PROJECT_NAME>

Read more about the devcontainer CLI

Prerequisites

  • Docker Desktop
  • Visual Studio Code with Remote - Containers extension installed
  • cookiecutter (can use through Docker as well)

Features

  • Go to definition, auto-complete
  • Refactoring
  • Code formatting on file save
  • Import sorting on file save
  • Debugger with ability to hit breakpoints and discover variables
  • pytest integration for unit tests (run / debug / visualize test runs)

Known issues

  • If IntelliSense features don't work after opening your dev container, run "Developer: Reload Window" from VS Code Command Palette. See microsoft/vscode#149309

About

VS Code Dev Container environment template for a Python 3 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published