quality-mypy

Configure mypy strict mode, overrides, and plugins in pyproject.toml.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sunLeee/optimization --skill quality-mypy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-mypy
Source: https://github.com/sunLeee/optimization/tree/main/.claude/skills/quality/check/quality-mypy
Command: npx skills add https://github.com/sunLeee/optimization --skill quality-mypy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams configure and manage mypy type checking for Python projects, improving type safety and maintainability by providing a centralized, tunable setup including strict mode, module overrides, and plugin integration.

Core Features & Use Cases

  • Centralized mypy configuration in pyproject.toml with strict mode, overrides, and plugins for Pydantic, enabling consistent type checks across modules and tests.
  • Progressive adoption guidance and quick-start commands, enabling teams to ramp up type safety without breaking builds.
  • Use Case: A software team wants to enforce strict type guarantees in critical modules while allowing leniency in experimental code, enabling safer refactors and earlier error detection.

Quick Start

Initialize the mypy configuration by running /quality-mypy init.

Frequently Asked Questions about quality-mypy

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

FAQPage Schema
How do I configure mypy strict mode in pyproject.toml?

Configure mypy strict mode in pyproject.toml by setting strict flags globally and applying module-level overrides for specific paths to allow leniency. This standardizes type checks across the entire project.

Can I apply mypy type checking to specific modules only?

Yes, you can target specific modules for mypy type checking by using module-level overrides in pyproject.toml. This enforces strict type guarantees in critical modules while allowing leniency in experimental code.

What is the best way to adopt mypy type checking progressively?

The best way to adopt mypy progressively is using a centralized pyproject.toml configuration with overrides, enabling teams to ramp up type safety incrementally without breaking existing builds across codebases of varying complexity.

Does mypy work with Pydantic plugins for type safety?

Yes, mypy works with Pydantic plugins for type safety by integrating plugin support directly into your pyproject.toml configuration. This ensures consistent type checks across modules utilizing Pydantic models.

Why configure mypy for incremental adoption across a large codebase?

Configuring mypy for incremental adoption across a large codebase ensures reliable, consistent type checking while allowing teams to enforce strict type guarantees gradually. This enables safer refactors and earlier error detection without disrupting development.