python-code-style

Standardize Python code style with ruff, mypy, and Google-style docstrings.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Jhabbig/Habbig --skill python-code-style-jhabbig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/Jhabbig/Habbig/tree/main/.claude/plugins/wshobson/python-development/skills/python-code-style
Command: npx skills add https://github.com/Jhabbig/Habbig --skill python-code-style-jhabbig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams write Python that is easier to read, maintain, and review by standardizing style, naming, imports, formatting, and documentation practices.

Core Features & Use Cases

  • Automated formatting and linting: Set up modern tooling to keep code consistent and catch style issues early.
  • Naming and import conventions: Apply clear PEP 8-based names, organize imports predictably, and avoid fragile relative import patterns.
  • Docstrings and project standards: Create Google-style docstrings, define type-checking expectations, and document a shared Python code style for the team.
  • Use case: A developer asks for a project-ready Python style guide, a Ruff and Mypy configuration, and feedback on function names and docstrings before merging new code.

Quick Start

Ask for Python code style guidance, linting setup, or docstring review 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 set up Python code formatting and linting with Ruff and Mypy?

Set up Python code formatting and linting by configuring Ruff and Mypy to enforce 120-character line lengths, absolute imports, and PEP 8 naming conventions, catching style issues early in development.

What is the best way to organize Python imports and enforce naming conventions?

The best way to organize Python imports is using absolute imports and applying PEP 8 naming rules to avoid fragile relative patterns and ensure predictable, clean code structure across the project.

How do I write Google-style docstrings for Python functions?

Write Google-style docstrings for Python functions by standardizing documentation format to include clear descriptions, arguments, and return types, ensuring your codebase maintains consistent and readable documentation practices.

Does this Python code style approach work with type checking tools like pyright?

Yes, this Python code style approach works with type checking tools like pyright and mypy, defining type-checking expectations alongside linting and formatting rules for comprehensive code style standardization.

Why use Ruff instead of other Python linting tools for project style reviews?

Use Ruff for Python linting because it provides modern, fast tooling that combines formatting and linting capabilities, applying 120-character line limits and PEP 8 conventions efficiently across large codebases.

Can I generate a project-ready Python style guide for my team?

Yes, you can generate a project-ready Python style guide that documents shared standards including Ruff and Mypy configuration, PEP 8 naming, absolute imports, and Google-style docstrings for team consistency.