python-code-style

Enforce ruff, mypy strict mode, and Google-style docstrings on Python code.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Moh-Tayyab/youtube-automation --skill python-code-style-moh-tayyab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/Moh-Tayyab/youtube-automation/tree/main/.agents/skills/python-code-style
Command: npx skills add https://github.com/Moh-Tayyab/youtube-automation --skill python-code-style-moh-tayyab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces Python code quality across a project by applying formatting, linting, strict typing, clear naming, and documentation standards, reducing bugs and onboarding time.

Core Features & Use Cases

  • Enforce formatting and linting with ruff, ensure static typing with mypy in strict mode
  • Promote Google-style docstrings, 120-char line length, and Python 3.12+ compatibility
  • Use during writing new code, refactoring, code reviews, and when setting up new Python modules

Quick Start

Run the style checks on your Python package and fix issues to bring all files in line with the standard.

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 across my project with ruff and mypy?

Enforce Python code style by running ruff linting and mypy strict mode across your package to identify and fix formatting, typing, and naming inconsistencies for a standardized codebase.

What Python static type checking standards does this approach enforce?

Python static type checking is enforced using mypy in strict mode, ensuring type safety and reducing runtime bugs while requiring clear type annotations across all Python 3.12+ compatible codebases.

Can I use Google-style docstrings and a 120-character line length for Python code quality?

Yes, you can enforce Google-style docstrings and a 120-character line length to standardize Python code documentation and formatting, ensuring readability and consistent project onboarding.

What's the best way to automate Python linting and formatting during code reviews?

Automate Python linting and formatting during code reviews by applying ruff checks and mypy strict typing rules to new code or refactored modules, catching style violations and typing errors before merging changes.

Does this Python code style enforcement require a specific Python version?

Yes, this Python code style enforcement requires Python 3.12 or higher, ensuring compatibility with modern syntax and type hint features required by ruff and mypy strict mode checks.