python-dev-guidelines
Installation
SKILL.md
Python Development Guidelines
Purpose
Establish consistency and best practices for Python development, covering modern Python 3.12+ patterns, type safety, testing, and project organization.
Standards Overview
| Category | Standard |
|---|---|
| Python | 3.12+, FastAPI, async/await preferred |
| Formatting | ruff (96-char lines, double quotes, sorted imports) |
| Typing | Strict (Pydantic v2 models preferred); from __future__ import annotations |
| Naming | snake_case (functions/variables), PascalCase (classes), SCREAMING_SNAKE (constants) |
| Error Handling | Typed exceptions; context managers for resources |
| Documentation | Google-style docstrings for public functions/classes |
| Testing | Separate test files matching source file patterns |