A minimal Python development environment with dev container support.
- Python 3.12
- Git & GitHub CLI
- uv (fast Python package manager)
- Ruff (linting & formatting)
- Pyright (type checking)
- pytest (testing)
- Dev container with VS Code integration
- Open this folder in VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) and run Dev Containers: Reopen in Container - Wait for the container to build and post-create script to complete
- Start developing!
# Install dev dependencies
uv sync --extra dev
# Add a new package
uv add <package-name>
# Add a dev dependency
uv add --dev <package-name>
# Remove a package
uv remove <package-name>
# Update dependencies
uv sync# Run all tests
pytest
# Run with coverage
pytest --cov=src tests/
# Run specific test file
pytest tests/test_main.py# Format code with ruff
ruff format .
# Lint code
ruff check .
# Fix auto-fixable issues
ruff check --fix .
# Type check with pyright
pyrightCtrl+Shift+P- Command PaletteCtrl+Shift+B- Run Build TaskF5- Start Debugging- Python: Select Interpreter - Choose Python environment
- Testing: Run All Tests - Execute test suite
.
├── .devcontainer/ # Dev container configuration
│ ├── devcontainer.json # Container settings
│ └── post-create.sh # Setup script
├── src/ # Source code
│ ├── __init__.py
│ └── main.py
├── tests/ # Test files
│ ├── __init__.py
│ └── test_main.py
├── pyproject.toml # Project configuration
└── README.md