ruff-mypy

Orchestrate ruff, mypy, and pre-commit workflows via uv for Python linting and type checking.

1|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/Motoki0705/tennis-lab --skill ruff-mypy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruff-mypy
Source: https://github.com/Motoki0705/tennis-lab/tree/main/skills/ruff-mypy
Command: npx skills add https://github.com/Motoki0705/tennis-lab --skill ruff-mypy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you run and fix lint and type-check issues across the tennis-lab repo by coordinating ruff, mypy, and pre-commit workflows through uv.

Core Features & Use Cases

  • Unified linting and type-checking workflow: Run ruff and mypy with consistent settings via uv to identify and fix issues quickly.
  • Deterministic fix strategy: Auto-fix first, then targeted manual fixes, with minimal ignores, to improve code health.
  • Operational guidance: Provides recommended run orders, pre-commit configurations, and policy guidelines to keep the codebase clean.

Quick Start

Run the recommended uv commands to synchronize environment and apply fixes.

Frequently Asked Questions about ruff-mypy

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

FAQPage Schema
How do I configure ruff and mypy in pyproject.toml for a Python project?

Configure ruff and mypy in pyproject.toml by defining [tool.ruff] and [tool.mypy] sections to enforce consistent linting rules and strict type-checking across Python sources in src/ and tests/.

How do I run ruff and mypy with uv to fix lint and type errors?

Run ruff and mypy with uv by synchronizing your environment and executing recommended uv commands, applying a deterministic fix strategy that auto-fixes lint errors first before targeting manual type hint issues.

Why does my pre-commit hook fail when running ruff and mypy?

Pre-commit hooks fail when ruff and mypy detect lint or type-checking violations, but you can resolve these failures by configuring .pre-commit-config.yaml and applying deterministic auto-fixes with ruff --fix before committing.

Does uv work with pre-commit workflows for Python linting?

Yes, uv works with pre-commit workflows by orchestrating ruff and mypy execution through a unified environment, ensuring consistent linting and type-checking results across your codebase.

What is the best way to fix mypy strict type checking errors in Python?

The best way to fix strict mypy errors is applying a deterministic fix strategy: auto-fix first with ruff --fix, then apply targeted manual fixes with minimal ignores to improve overall code health.

Can I auto-fix lint errors with ruff before running mypy type checks?

Yes, you can auto-fix lint errors first with ruff --fix before running strict mypy checks, following a deterministic fix strategy that minimizes manual intervention and reduces unnecessary type ignores.