language-python

Run Ruff, Mypy, and Pytest checks on Python code.

10|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/CsHeng/dot-claude --skill language-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: language-python
Source: https://github.com/CsHeng/dot-claude/tree/main/skills/language-python
Command: npx skills add https://github.com/CsHeng/dot-claude --skill language-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides Python language patterns and best practices to guide Python code quality, formatting, and testing.

Core Features & Use Cases

  • Code Validation: Run ruff, mypy, and pytest for linting, type checking, and tests.
  • Tool Integration: Use ruff, uv, and pytest to enforce standards and test coverage.
  • Execution Context: Analyze Python files, generate reports, and propose small, compliant patches.

Quick Start

Analyze a Python project with lints and tests; apply a minimal patch if violations are found.

Frequently Asked Questions about language-python

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

FAQPage Schema
How do I lint and type-check Python code automatically?

Linting and type-checking validate Python code against style and correctness rules. This Skill runs Ruff for linting, Mypy for type checking, and Pytest for tests, catching errors early in development, CI, and code review contexts without manual configuration overhead.

Can I use Ruff and Mypy together to enforce Python standards?

Yes. This Skill integrates Ruff, Mypy, and Pytest to enforce complementary standards—Ruff handles linting and formatting, Mypy validates type annotations, and Pytest runs tests. The Skill applies all three checks and proposes minimal patches to fix violations.

What's the best way to manage Python virtual environments and run tests consistently?

Use uv to manage virtual environments and dependencies, then run Pytest tests and static analysis tools within that environment. This Skill automates that workflow, ensuring consistent test execution and analysis across development, CI pipelines, and code review stages.

How do I generate patches for Python code that fails linting or type checks?

This Skill analyzes Python files against Ruff, Mypy, and Pytest standards, generates reports identifying violations, and proposes small, compliant patches that fix issues automatically without rewriting your code.

Can I apply Python best practices across an entire project in CI?

Yes. This Skill runs Ruff checks, Mypy type validation, and Pytest tests across your Python project and integrates into CI pipelines, applying governance rules consistently across development and review contexts without tool configuration conflicts.