python-lint

Run ruff and ty checks on changed Python files in the git working tree.

1|Updated Mar 25, 2025
One-click install
npx skills add https://github.com/ramtinJ95/dotfiles --skill python-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-lint
Source: https://github.com/ramtinJ95/dotfiles/tree/main/mac-config/mac-dotfiles/claude/.claude/skills/python-lint
Command: npx skills add https://github.com/ramtinJ95/dotfiles --skill python-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers identify and fix Python linting, formatting, and type-checking issues efficiently, reducing code smells and runtime errors.

Core Features & Use Cases

  • Automated Ruff linting and formatting: Detects linting issues in changed Python files and applies fixes.
  • Type checking with Ty: Ensures type hints are correct across modified code.
  • Controlled auto-fixes: Prompts before applying fixes to avoid unintended changes.

Quick Start

Install the required tooling and run the skill to lint and auto-fix Python files that have changed in your project.

Frequently Asked Questions about python-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lint and auto-fix Python code in my git working tree?

To lint and auto-fix Python code, this skill runs ruff on changed files in your git working tree, reporting issues and offering automated fixes. It identifies formatting problems and code smells efficiently before prompting you to apply corrections.

Can I run type checking on modified Python files using ty?

Yes, you can run type checking on modified Python files using ty. The skill executes ty to ensure type hints are correct across the code that has changed in your current git working tree, helping catch potential runtime errors.

Do I need ruff and ty installed to format my Python files?

Yes, you need ruff and ty installed in your environment to format and check your Python files. The solution requires these specific packages to execute the automated linting, formatting, and type validation checks.

How does automated Python formatting handle unintended code changes?

Automated Python formatting handles unintended changes by prompting you before applying fixes. This controlled auto-fix mechanism ensures you can review reported ruff issues and approve modifications before they are written to your files.

What is the best way to check only changed Python files for linting issues?

The best way to check only changed Python files for linting issues is to target the current git working tree. This skill focuses specifically on modified files, running ruff and ty checks to efficiently validate code quality without scanning the entire project.