python-dev

Standardize Python code quality with formatting, typing, and testing tools.

1.0k|102|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/doccker/cc-use-exp --skill python-dev-doccker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-dev
Source: https://github.com/doccker/cc-use-exp/tree/main/.claude/skills/python-dev
Command: npx skills add https://github.com/doccker/cc-use-exp --skill python-dev-doccker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能旨在确保 Python 项目在格式、类型注解、异常处理和测试方面具有一致的开发标准,降低团队沟通成本,并提升代码可维护性和可读性。

Core Features & Use Cases

  • 格式化与导入排序: 使用 Black 与 isort 实现代码风格的一致性。
  • 类型检查与静态分析: 通过 mypy 与 pyright 提供类型校验,确保接口与实现的一致性。
  • 风格与测试规范: 通过 Ruff、Flake8 进行风格检查,并使用 pytest 运行测试以确保质量。
  • Use Case: 在一个矩阵式微服务项目中应用此 Skill,保证新提交的 PR 遵循统一风格、类型注解和测试覆盖率,CI 通过率提升。

Quick Start

Install the recommended tooling locally via your Python environment: pip install black isort mypy pyright ruff flake8 pytest Format, lint, type-check and test your codebase: black .; isort .; ruff check .; flake8 .; mypy .; pytest -v

Use this Skill to maintain consistent standards across Python projects and CI workflows.

Frequently Asked Questions about python-dev

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

FAQPage Schema
How do I enforce PEP 8 and Python coding standards across a project?

To enforce PEP 8 and Python coding standards, this skill codifies formatting, typing, exception handling, and testing rules across modules to ensure consistent code quality. It standardizes development practices to reduce team communication costs and improve maintainability.

What's the best way to set up Black, isort, mypy, and pytest for CI workflows?

The best way to set up these tools for CI workflows is installing them via pip and running sequential commands like black, isort, ruff check, flake8, mypy, and pytest -v. This skill integrates these tools to maintain consistent standards across Python projects and CI workflows.

Does this Python linting skill work with both mypy and pyright for type checking?

Yes, this Python linting skill works with both mypy and pyright for type checking. It uses these tools to provide type validation, ensuring interface and implementation consistency across your Python project.

How do I standardize Python type annotations and exception handling in microservices?

To standardize Python type annotations and exception handling in microservices, this skill applies unified development rules across varying project sizes. It ensures consistent code quality and interface consistency, which improved CI pass rates in matrix microservice projects.

Can I use Ruff and Flake8 together for Python style checking?

Yes, you can use Ruff and Flake8 together for Python style checking. This skill supports both tools to perform comprehensive style checks and linting, ensuring your codebase follows the required coding standards.