python

Enforce Python code quality, type safety, and testing standards with Ruff, MyPy, and Pytest.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Patrickjoshanedez/CMS-V2 --skill python-patrickjoshanedez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/Patrickjoshanedez/CMS-V2/tree/main/.agents/skills/python
Command: npx skills add https://github.com/Patrickjoshanedez/CMS-V2 --skill python-patrickjoshanedez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Code Linting & Formatting: Ensures code adheres to style guides and best practices using Ruff.
  • Static Type Checking: Catches type-related errors before runtime with MyPy.
  • Test-Driven Development: Facilitates writing comprehensive unit and integration tests with Pytest.
  • Use Case: When developing a new Python module, use this Skill to automatically lint, format, type-check, and run tests, ensuring high quality from the start.

Quick Start

Run the quality gate for the current Python project.

Frequently Asked Questions about python

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

FAQPage Schema
How do I enforce Python code quality and type safety in a CI pipeline?

Python test coverage can be enforced by running Pytest with a minimum coverage threshold of 80%. This Skill mandates this standard alongside Ruff and MyPy checks to guarantee robust, well-tested codebases.

Can I use Ruff and MyPy together for Python static analysis?

Yes, Ruff and MyPy work together to enforce Python code standards. Ruff handles linting and formatting while MyPy performs static type checking to catch type-related errors before runtime.

What is the best way to start test-driven development with Pytest in a new project?

The best way to start test-driven development with Pytest is to use a quality gate that facilitates writing comprehensive unit and integration tests while requiring strict type hints and 80% coverage.

Does this Python quality gate require strict type hints for all modules?

Yes, this Python quality gate requires strict adherence to type hints across all modules. It uses MyPy to statically check type safety and catch type-related errors before runtime.

Why does Pytest fail when my code coverage drops below 80%?

Pytest fails because this Python development standard enforces a minimum test coverage of 80%. This strict quality gate ensures that all modules have comprehensive unit and integration tests.