Lint Skill
Run comprehensive linting and code quality checks on the codebase.
Instructions
- •
Run ruff with auto-fix:
bashruff check . --fix
- •
Run black formatter:
bashblack .
- •
Run mypy type checking:
bashmypy . --ignore-missing-imports
- •
Find and fix placeholder statements:
- •Search for
passstatements that should have implementations - •Search for
TODO,FIXME,XXX,HACKcomments - •Search for
NotImplementedErrorthat should be implemented - •Search for
...(ellipsis) placeholders in function bodies
bashgrep -rn "TODO\|FIXME\|XXX\|HACK\|NotImplementedError\|pass$" --include="*.py" .
- •Search for
- •
Fix any issues found:
- •For each linting error, apply the appropriate fix
- •For placeholder statements, implement the functionality or remove if unnecessary
- •Ensure all changes pass linting after fixes
- •
Verify all checks pass:
bashruff check . black --check . mypy . --ignore-missing-imports
Output
Report all issues found and fixes applied. If any issues cannot be automatically fixed, list them with recommendations.