Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
meleantonio avatar

Code Style

  • 2 installs
  • 512 repo stars
  • Updated February 11, 2026
  • meleantonio/chernycode

Defines Python code style and formatting standards using Ruff, covering naming, type hints, and Google-style docstrings.

About

Specifies Python conventions for Ruff formatting, naming, required type hints, and Google-style docstrings. A developer uses it when writing or reviewing Python code to enforce consistent style.

  • Ruff formatting, 120-char lines, 4-space indentation
  • Required type hints and Google-style docstrings

Code Style by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #236 of 290 Python skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/meleantonio/chernycode --skill code-style

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars512
Last updatedFebruary 11, 2026
Repositorymeleantonio/chernycode

What it does

Defines Python code style and formatting standards using Ruff, covering naming, type hints, and Google-style docstrings.

Files

SKILL.mdMarkdownGitHub ↗

Python Code Style

Formatting

  • Use Ruff for formatting (ruff format .)
  • Indentation: 4 spaces
  • Max line length: 120 characters
  • Use trailing commas in multi-line collections

Naming Conventions

  • Functions and variables: snake_case
  • Classes: PascalCase
  • Constants: UPPER_SNAKE_CASE
  • Private members: _leading_underscore
  • Module files: snake_case.py

Type Hints

  • Required for all function parameters and return types
  • Use Optional[T] or T | None for nullable types
  • Use list[T], dict[K, V] (lowercase) for Python 3.10+

Docstrings

  • Use Google-style docstrings
  • Required for all public functions, classes, and modules
  • Include Args, Returns, and Raises sections

Example:

def calculate_total(items: list[Item], discount: float = 0.0) -> float:
    """Calculate the total price of items with optional discount.

    Args:
        items: List of items to calculate total for.
        discount: Discount percentage to apply (0.0 to 1.0).

    Returns:
        The total price after discount.

    Raises:
        ValueError: If discount is not between 0 and 1.
    """

Imports

  • Sort with Ruff (replaces isort)
  • Group: stdlib, third-party, local
  • Use absolute imports for clarity
  • Avoid wildcard imports (from x import *)

Commands

  • Format: ruff format .
  • Lint: ruff check .
  • Fix: ruff check --fix .

Related skills

Pythonbackenddocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.