python-linter - Ruff Python Linter Issue Fixes
Guide coding agents to fix specific Python linter issues from Ruff.
Tags
Updated: 2026-06-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- identify ruff rule codes
- resolve E402 module imports
- fix B007 loop variables
- correct B008 default arguments
- replace hardcoded temp paths
- move imports to top level
- migrate to modern numpy API
- replace insecure random usage
- apply context-specific fixes
- verify linter issue resolution
Inputs
- Python source code
- Ruff linter error codes
- linter rule code
- code context
Outputs
- fixed Python code
- modified import statements
- replaced random functions
- applied code fixes
Requirements
- Ruff 0.12.0+
- Python 3.8+
- Typer CLI support
- pytest support
