What problem does it solve?
This Skill addresses the challenges of inconsistent Python code, unmanaged dependencies, and a lack of automated quality checks. It streamlines Python development by enforcing best practices, leading to fewer bugs, improved maintainability, and faster delivery.
Core Features & Use Cases
- Unified Package Management: Mandates
uv for all Python package operations, replacing pip for faster dependency resolution, better lock file management, and project-wide consistency.
- Automated Code Quality: Enforces
ruff for linting and formatting, and mypy/basedpyright for strict type checking, ensuring high code quality with minimal manual effort.
- Self-Documenting Code: Guides on writing concise one-line docstrings for most functions, minimizing inline comments, and using clear, descriptive names to make code inherently understandable.
- Use Case: When starting a new Python microservice, use this skill to set up
uv for dependency management, configure ruff for automatic formatting and linting, and ensure all new functions have type hints and concise docstrings.
Quick Start
Apply the Backend Python Standards skill to review the 'userService.py' file, ensuring all functions have type hints, docstrings, and that the file passes 'ruff check' and 'mypy --strict' without errors.