What problem does it solve?
Python developers often struggle with maintaining code quality, robust error handling, and consistent environment management across projects. This skill provides guidance and conventions to write clean, reliable Python code and notebooks, improving readability and maintainability.
Core Features & Use Cases
- Code Quality & Style: Enforces type hints, snake_case, Google-style docstrings, small functions, and DRY principles to improve readability and reduce defects.
- Error Handling & Reliability: Promotes early input validation and specific exceptions to prevent silent failures.
- Testing & Environment Management: Emphasizes pytest-driven testing, TDD approach, and setup using virtual environments (venv or uv) to manage dependencies.
- Use Case: When starting a Python project or reviewing existing code, apply these rules to ensure consistent quality and testability across files and notebooks.
Quick Start
Open a Python project and apply these rules to a new script, then run the test suite with pytest to verify behavior.