python-code-style

Enforce Python linting, formatting, naming, and docstring standards with Ruff and MyPy.

1|Updated Jul 24, 2025
One-click install
npx skills add https://github.com/civictechdc/votecatcher --skill python-code-style-civictechdc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/civictechdc/votecatcher/tree/main/backend/.agent/skills/python-code-style
Command: npx skills add https://github.com/civictechdc/votecatcher --skill python-code-style-civictechdc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent Python style across projects slows onboarding, reduces readability, and makes collaboration harder.

Core Features & Use Cases

  • Automated linting and formatting with modern tools to enforce consistent style.
  • Naming conventions and docstrings guidance to improve API clarity and maintainability.
  • Documentation as code practices to keep docs in sync with implementation and reviews.

Quick Start

Install and configure linting and typing tools to enforce style and documentation standards.

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 multiple projects?

Python code style is enforced by configuring Ruff and MyPy in pyproject.toml to standardize naming conventions, formatting, and documentation. This ensures consistent readability and maintainability across projects during onboarding and code reviews.

What's the best way to set up Ruff and MyPy for Python linting and formatting?

Set up Ruff and MyPy for Python linting by defining their configurations in pyproject.toml. This enforces 120-character line limits, automated formatting, and static type checking to maintain consistent coding standards.

Does this Python style configuration require Google-style docstrings?

Yes, this Python style configuration requires Google-style docstrings. It enforces documentation as code practices to keep docs synchronized with implementation, improving API clarity and maintainability during code reviews.

Why should I use Ruff and MyPy to standardize Python code during onboarding?

You should use Ruff and MyPy to standardize Python code because inconsistent style slows onboarding and reduces readability. Applying these tools during project setup enforces linting and typing standards that make collaboration easier.

Can I apply Python linting and docstring standards during code reviews?

Yes, you can apply Python linting and docstring standards during code reviews. The configuration enforces naming conventions and Google-style docstrings, ensuring documentation stays in sync with implementation before merging code.

What line length limit does this Python coding standard enforce in pyproject.toml?

This Python coding standard enforces a 120-character line length limit. Configured in pyproject.toml alongside Ruff and MyPy, it standardizes formatting and improves readability across the codebase.