python-code-style

Configure Ruff, mypy/pyright, and Google-style docstrings for Python projects.

1|Updated May 10, 2025
One-click install
npx skills add https://github.com/akrk1986/youtube-download --skill python-code-style-akrk1986
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/akrk1986/youtube-download/tree/main/.claude/skills/python-code-style
Command: npx skills add https://github.com/akrk1986/youtube-download --skill python-code-style-akrk1986

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python projects often suffer from inconsistent styling, unclear documentation, and maintenance challenges as teams grow. This skill provides a structured approach to enforce modern Python tooling, naming conventions, and documentation standards across codebases.

Core Features & Use Cases

  • Automated formatting & linting: configure and apply Ruff to enforce style rules and import order.
  • Type checking & documentation: integrate mypy/pyright and Google-style docstrings to improve reliability and readability.
  • Project-wide standards: establish consistent naming conventions, 120-character line-length, and docs-as-code practices for maintainability.

Quick Start

Initialize the standard Python code style and documentation setup for your project.

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 consistent Python code style and documentation across my projects?

You can enforce consistent Python code style by configuring automated tools like Ruff for linting and mypy or pyright for type checking, alongside establishing project-wide naming conventions and Google-style docstrings.

What is the best way to configure Ruff and mypy for a new Python project?

The best way to configure Ruff and mypy involves setting up automated formatting rules, enforcing a 120-character line length, and integrating strict typing checks to improve code reliability and readability from the start.

Does this Python code style setup support Google-style docstrings and type checking?

Yes, this Python code style setup explicitly supports Google-style docstrings and integrates mypy or pyright type checking to enforce comprehensive documentation and typing standards across your codebase.

Why should I use Ruff for Python linting instead of other category-level tools?

Ruff provides automated formatting and linting for Python projects, enforcing style rules and import order while consolidating multiple linting functionalities into a single, fast configuration tool.

Can I apply these Python naming conventions and code style rules during code reviews?

Yes, you can apply these Python code style standards and naming conventions during code reviews to ensure consistent styling, comprehensive documentation, and maintainability as your team grows.