Development containers provide isolated, consistent environments that eliminate the "works on my machine" problem. This setup gives you a ready-to-use Python development environment with security best practices and essential tools pre-installed.
Instead of spending hours configuring Python versions, extensions, and dependencies, you get a working setup in minutes. Perfect for teams who want consistent development environments across different machines and platforms.
- Clone or download this template
- Open the folder in VS Code
- Install the "Dev Containers" extension if not already installed
- Customize
requirements.txtand.devcontainer/devcontainer.jsonfor your project needs - Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) → "Dev Containers: Reopen in Container" - Wait for the container to build and dependencies to install
Happy coding!
Once your container is running, verify everything works:
pytestYou should see the test pass, confirming your development environment is ready.
- Python 3.14 environment (via official devcontainers image)
- Complete Python toolchain:
- Python extension (ms-python.python)
- Pylance language server (ms-python.pylance)
- Debugpy debugger (ms-python.debugpy)
- Black code formatter (ms-python.black-formatter)
- Testing framework (
pytestwith coverage) - AWS CLI (pre-installed via devcontainer features)
- Security settings to prevent credential leaks
- AI coding ready (minimal token waste, avoids common traps)
- Quiet pip output by default to reduce noise (can be disabled)
- AWS CLI: Cloud development ready—AWS CLI is pre-installed for easy integration.
- Quiet pip output: By default, pip output is minimized to reduce noise. Unset
PIP_QUIETto see full pip logs.
The container auto-installs:
ms-python.python– Python supportms-python.pylance– Language serverms-python.debugpy– Debuggingms-python.black-formatter– Code formatting
Note: AI coding assistant extensions (Cline, Kilo, Roo) are available but not enabled by default. Uncomment them in
.devcontainer/devcontainer.jsonif desired.
.devcontainer/devcontainer.json– Container configuration.devcontainer/Dockerfile– Base image (Python 3.14)requirements.txt– Testing and formatting dependencies (pytest, pytest-cov, black)pytest.ini– Test configurationexample.py– Example Python script
- Security:
- Prevents Docker/Git credentials from leaking into the container
- Disables Git credential helper and WSL credential copying
- Extensions:
- Auto-installs core Python and formatting tools
- Auto-install:
- Python dependencies install automatically on container creation
- AI Ready:
- Avoids common traps, saves tokens by suppressing verbose logs
- The container is built for
linux/amd64by default (set in.devcontainer/devcontainer.json). If you are on Apple Silicon (ARM), this ensures compatibility.
- Edit
requirements.txtfor your project dependencies - Adjust
.devcontainer/devcontainer.jsonto add features, tools, or extensions