What problem does it solve?
This Skill addresses the complexity and fragmentation of Python code quality tooling by consolidating linters, formatters, and type checkers into a streamlined, efficient workflow. It eliminates the need to manage multiple tools and configurations, ensuring consistent code standards and robust type safety.
Core Features & Use Cases
- Unified Tooling: Integrates Ruff for linting and formatting, and mypy/pyright for type checking.
- Opinionated Defaults: Provides recommended configurations for Ruff rule sets, formatting, and strict type checking.
- Modern Type Hinting: Guides on using the latest Python type hinting syntax and best practices.
- Pre-commit Optimization: Streamlines pre-commit hooks to include only essential Ruff checks.
- Use Case: When setting up a new Python project, use this Skill to configure Ruff and mypy, ensuring code adheres to best practices and type safety from the start.
Quick Start
Configure Ruff and mypy for a new Python project by following the recommended settings in pyproject.toml.