python-code-style

Enforce Python code style with Ruff, MyPy, and pyright configurations.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill python-code-style-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/python-code-style
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill python-code-style-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consistent Python code style and clear documentation are hard to enforce across teams; this skill provides guidelines and tooling to standardize formatting, naming conventions, and docstrings.

Core Features & Use Cases

  • Automated Formatting: Use tools like Ruff to enforce formatting automatically.
  • Consistent Naming: Adhere to PEP 8 naming conventions to improve readability.
  • Documentation as Code: Maintain docstrings alongside code to ensure clarity.
  • Type Annotations: Enforce type hints for public APIs.

Quick Start

Install Ruff and MyPy, then configure pyproject.toml to enforce a 120-character line length and strict typing.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I enforce Python code style and linting across a team project?

To enforce Python code style and linting, configure tools like Ruff and MyPy in your pyproject.toml file. This setup automates formatting, validates naming conventions, and ensures consistent code standards across the codebase during reviews.

What is the best way to configure strict type checking and line length in Python?

The best way to configure strict type checking and line length is by defining rules in pyproject.toml. You can enforce a 120-character line length and strict typing using tools such as mypy or pyright for automated validation.

How do I add Google-style docstrings to public APIs in Python?

To add Google-style docstrings to public APIs, maintain documentation as code directly alongside your Python functions. Enforce this standard during project setup and code reviews to ensure clarity and consistent API documentation.

Does Ruff work with mypy for automated formatting and type checking?

Yes, Ruff works with mypy to handle automated formatting and strict type checking. Configuring both tools in pyproject.toml allows you to enforce PEP 8 naming conventions, formatting, and type annotations simultaneously.

Why do I need strict type annotations and formatting for Python projects?

You need strict type annotations and formatting to improve readability and maintain consistency across teams. Enforcing type hints for public APIs and automated formatting reduces errors and establishes clear team standards for tooling.