python-standards
Installation
SKILL.md
Python Standards
Overview
This skill defines the Python coding standards, type hints, code quality requirements, and best practices for modern Python projects. These standards ensure consistency, maintainability, and type safety across the codebase.
Type Hints (Mandatory)
Type hints are required everywhere for all function parameters and return values.
from typing import Any
# Function with type hints
def process_data(item_id: str, group_id: int) -> dict[str, Any]:
"""Process a data item and return metadata."""
return {"id": item_id, "group": group_id}