python-code-style

Enforce Python style, linting, and documentation with Ruff and MyPy.

2|2|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/NorkzYT/claude-code-autopilot --skill python-code-style-norkzyt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/NorkzYT/claude-code-autopilot/tree/main/.claude/skills/python-code-style
Command: npx skills add https://github.com/NorkzYT/claude-code-autopilot --skill python-code-style-norkzyt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes Python code quality by enforcing style, linting, and documentation conventions.

Core Features & Use Cases

  • Automated formatting and linting: Use Ruff to enforce a consistent code style across projects.
  • Naming & documentation: Apply PEP 8 naming conventions and Google-style docstrings to improve readability and maintainability.
  • Type checking & quality gates: Integrate mypy/pyright for strict type checks and CI checks to prevent regressions.
  • Use case: When starting a new Python project or reviewing existing code, configure tooling once and maintain consistency across teams.

Quick Start

Install Ruff and MyPy, configure pyproject.toml, and run linting/typing checks to enforce standards across the codebase.

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 standardize Python code quality across a project?

Enforce PEP 8 and standardize Python code quality by configuring Ruff and MyPy within a pyproject.toml file to automate formatting, linting, and apply strict type checks across your codebase.

What's the best way to set up automated Python linting and type checking?

Set up automated Python linting and type checking by installing Ruff and MyPy, configuring rules in pyproject.toml, and integrating these tools into CI checks to prevent code regressions.

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

Add Google-style docstrings to public Python APIs by applying standardized documentation conventions alongside PEP 8 naming rules to ensure readability and maintainability for your project's public interfaces.

Can I use Ruff and MyPy together for Python formatting and type checks?

Yes, you can use Ruff and MyPy together by configuring both tools in your pyproject.toml setup to handle automated formatting, linting, and strict type checking within a unified development workflow.

Do I need a pyproject.toml file to maintain consistent Python style conventions?

Yes, a pyproject.toml file is required to configure Ruff and MyPy tooling, establishing your project's specific Python style, linting rules, and type checking parameters in one centralized location.

Why configure CI checks with Ruff and MyPy for Python code reviews?

Configure CI checks with Ruff and MyPy during Python code reviews to automatically enforce style conventions, validate type safety, and prevent quality regressions before merging code changes.