What problem does it solve?
This Skill guides developers to modernize Python projects by providing tooling, typing, and project-structure best practices. It addresses the pain of legacy, untyped Python projects and helps teams adopt modern workflows.
Core Features & Use Cases
- Modern Tooling Stack with uv (or Poetry), ruff, mypy, and pytest for a robust development workflow.
- Project Structure: enforce a src-layout and clean packaging to prevent import errors and ensure testing against installed packages.
- Modern Idioms & Best Practices: strict typing, Pydantic for data validation, pathlib usage, and asyncio patterns.
Use Case: Starting a new Python project or refactoring legacy code to a modern, production-ready state.
Quick Start
Use the swift start commands to initialize a project and add standard dev dependencies:
uv init my-project
cd my-project
uv add --dev ruff mypy pytest pytest-cov