What problem does it solve?
This Skill automates the process of checking and fixing Python code for style, quality, and potential errors, ensuring adherence to project standards and improving code maintainability.
Core Features & Use Cases
- Linting: Runs the Ruff linter to identify style violations (Pycodestyle, Pyflakes), import errors, and code quality issues (Pyupgrade, Pydocstyle).
- Auto-fixing: Automatically corrects many common issues like import sorting, unused imports, and syntax modernization.
- Manual Fix Guidance: Provides clear instructions for resolving errors that cannot be auto-fixed, such as missing docstrings or line length issues.
- Use Case: After writing new Python code, run this Skill to automatically format it, fix common errors, and ensure it meets the project's coding standards before committing.
Quick Start
Run the ruff skill to check and fix all staged Python files.