python

Enforce Python best practices with TDD, mypy, Ruff, and pytest.

705|56|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/alinaqi/claude-bootstrap --skill python-alinaqi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/alinaqi/claude-bootstrap/tree/main/skills/python
Command: npx skills add https://github.com/alinaqi/claude-bootstrap --skill python-alinaqi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines Python development by enforcing rigorous testing, type safety, and code quality standards, leading to more robust and maintainable code.

Core Features & Use Cases

  • Test-Driven Development (TDD): Ensures code is written to pass predefined tests, starting with failing tests.
  • Type Safety: Utilizes type hints and static analysis (mypy) to catch type-related errors early.
  • Code Quality: Integrates linters (Ruff) and formatters for consistent and clean code.
  • Use Case: Develop a new Python microservice feature by first writing unit tests, then implementing the code to satisfy those tests, and finally ensuring it passes all quality gates before merging.

Quick Start

Use the python skill to set up a new Python project with Ruff, mypy, and pytest.

Frequently Asked Questions about python

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

FAQPage Schema
How do I set up a Python project with pytest, mypy, and Ruff for TDD?

To set up a Python project with pytest, mypy, and Ruff, you configure these tools to enforce Test-Driven Development, strict type hinting, and code linting. This skill automates that project initialization to establish rigorous quality gates.

What is the best way to enforce type safety and code quality in Python?

The best way to enforce type safety and code quality in Python is by integrating mypy for static type analysis and Ruff for linting and formatting. This skill applies these tools to catch type-related errors early and maintain consistent code.

How does Test-Driven Development work with pytest in Python?

Test-Driven Development with pytest works by writing failing unit tests first, then implementing the Python code to satisfy those tests. This skill enforces this TDD workflow to ensure robust and maintainable code development.

Can I integrate mypy and Ruff with GitHub Actions and pre-commit hooks?

Yes, you can integrate mypy and Ruff with GitHub Actions and pre-commit hooks. This skill supports configuring these automated quality assurance pipelines to ensure all code passes type checking and linting before merging.

Why should I use Ruff over other Python linters for code formatting?

You should use Ruff for Python code formatting and linting because it integrates cleanly with strict type hinting workflows. This skill utilizes Ruff alongside mypy to deliver consistent code quality and catch errors early in development.