meleantonio/chernycode · Archived

code-style

Python code style and formatting standards using Ruff. Use when writing or reviewing Python code.

First seen Apr 26, 2026

Installation

$ npx skills add meleantonio/chernycode --skill code-style

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from meleantonio/chernycode.

npx skills add meleantonio/chernycode

Browse all from meleantonio/chernycode

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 516
License MIT
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,515 B
  • docs SUMMARY.md 115 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

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: UPPERSNAKECASE
  • Private members: leadingunderscore
  • 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 .