python-code-style

Enforces Python code style, linting and documentation standards via Ruff and mypy.

3|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/duanbiao2000/obsidianDoc26 --skill python-code-style-duanbiao2000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/duanbiao2000/obsidianDoc26/tree/main/agents-main/plugins/python-development/skills/python-code-style
Command: npx skills add https://github.com/duanbiao2000/obsidianDoc26 --skill python-code-style-duanbiao2000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.

Core Features & Use Cases

  • Modern tooling setup with Ruff, MyPy, and pyproject.toml configuration to enforce style.
  • Enforce consistent naming, robust docstrings, and explicit type annotations across public APIs.
  • Import organization and standards for maintainable, scalable Python codebases.

Quick Start

Configure a Python project to enforce style and type safety by setting up Ruff and mypy.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I configure Ruff and mypy in pyproject.toml to enforce Python code style?

To enforce Python code style, configure Ruff and mypy settings within your pyproject.toml file to establish linting, formatting, and strict type-checking rules across your codebase.

What are the best practices for Python docstrings and type annotations in public APIs?

Python docstrings and type annotations best practices involve enforcing consistent naming conventions, writing robust documentation, and applying explicit type hints across all public APIs for maintainability.

Does this Python linting approach work for ongoing code reviews and new projects?

Yes, this Python linting approach works for both new projects and ongoing code reviews, applying standardized import organization, naming guidelines, and tooling configuration across teams.

How do I set up import organization standards for a scalable Python codebase?

Set up import organization standards by configuring Ruff in your pyproject.toml to automatically enforce consistent import sorting and formatting rules across your Python codebase.

What is the difference between using Ruff and mypy for Python code style enforcement?

Ruff handles fast linting and formatting to enforce code style and import organization, while mypy provides strict static type-checking settings to validate type annotations across public APIs.