python-code-style

Configure ruff, mypy, and pyproject.toml for Python code style enforcement.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill python-code-style-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/python-development/skills/python-code-style
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill python-code-style-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code style and documentation standards help teams write consistent, maintainable code by standardizing formatting, naming, and docstrings, reducing review time and onboarding friction.

Core Features & Use Cases

  • Automated tooling setup for linting, formatting, and documentation standards (ruff, mypy), applied to new projects and ongoing code reviews.
  • Clear guidance on naming conventions, type annotations, and "docs as code" practices to improve readability and maintainability.
  • Use Case: When starting a Python project or reviewing existing code, apply these standards to ensure code quality and documentation quality across the codebase.

Quick Start

Install ruff and mypy, then configure pyproject.toml to enable linting, formatting, and strict type checking.

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 for Python code style and type checking?

To configure ruff and mypy for Python code style and type checking, you install both tools and define their rules within your pyproject.toml file. This setup enforces strict linting, formatting, and type validation for Python 3.8+ codebases.

What is the best way to enforce Python docstring standards across a codebase?

The best way to enforce Python docstring standards is by applying "docs as code" practices through automated tooling. Configuring pyproject.toml with ruff and mypy ensures documentation quality and consistent naming conventions during code reviews.

Can I use pyproject.toml to manage linting and formatting for Python 3.8+ projects?

Yes, you can use pyproject.toml to manage linting, formatting, and strict type checking for Python 3.8+ projects. This central configuration file supports ruff and mypy to standardize code style and documentation guidelines.

Does ruff support type checking and documentation standards enforcement?

Ruff supports linting, formatting, and documentation style enforcement, while mypy handles strict type checking. Together, they standardize naming conventions, type annotations, and docstring quality to reduce code review friction.

Why should I standardize Python code style for new projects and code reviews?

Standardizing Python code style for new projects and code reviews ensures consistent, maintainable code. By enforcing formatting and documentation standards, teams reduce review time, improve readability, and lower onboarding friction.