python-code-style

Enforce Python code style with ruff and mypy.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill python-code-style-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/yusufcmg/Antigravity-Agents-Workflows/tree/main/.agent/skills/languages/python/python-code-style
Command: npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill python-code-style-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of maintaining consistent, readable, and maintainable Python code across projects and teams by providing guidelines and tools for code style, linting, formatting, naming conventions, and documentation.

Core Features & Use Cases

  • Automated Formatting & Linting: Integrates with tools like ruff to automatically format code and catch style violations.
  • Type Hinting & Checking: Promotes the use of type annotations and integrates with mypy or pyright for static type analysis.
  • Naming Conventions: Enforces PEP 8 compliant naming for variables, functions, classes, and constants.
  • Documentation Standards: Guides the creation of clear, Google-style docstrings for all public APIs.
  • Use Case: When starting a new Python project, use this Skill to configure pyproject.toml with ruff and mypy settings, ensuring all new code adheres to best practices from the outset.

Quick Start

Configure your project's pyproject.toml file to use ruff for linting and formatting, and mypy for 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 enforce PEP 8 and Python code style in my project?

To enforce Python code style, configure your project with ruff for automated linting and formatting, and use mypy for static type checking to ensure PEP 8 compliance and maintainable codebases.

What's the best way to set up ruff and mypy for Python linting?

The best way to set up Python linting is by configuring your pyproject.toml file to define ruff for formatting and mypy for type analysis, ensuring all new code adheres to modern best practices.

How do I add type hinting and Google-style docstrings to Python functions?

To add type hinting and documentation standards, apply type annotations checked by mypy and write clear, Google-style docstrings for all public APIs to improve code quality and readability.

Does this Python code style enforcement work with existing codebases?

Yes, Python code style enforcement integrates with existing codebases by using ruff to automatically format code and catch style violations, addressing the need for consistent and collaborative code quality.

What naming conventions are required for Python variables and classes?

Required Python naming conventions enforce PEP 8 compliant naming rules for variables, functions, classes, and constants to maintain readability and structural consistency across the project.

Why do I need mypy for Python type checking if I already use ruff?

You need mypy alongside ruff because ruff handles automated formatting and linting, while mypy performs static type analysis to validate type annotations and prevent type-related errors.