python

Enforce Python coding standards with strict typing and pytest parametrized tests.

16|1|Updated Jun 26, 2025
One-click install
npx skills add https://github.com/bendrucker/claude --skill python
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/bendrucker/claude/tree/main/.claude/skills/python
Command: npx skills add https://github.com/bendrucker/claude --skill python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv, pytest.

What problem does it solve?

This Skill standardizes Python development, ensuring high-quality, maintainable code with consistent style, type safety, and robust testing.

Core Features & Use Cases

  • Modern Python: Leverage the latest language features and uv for efficient package management.
  • Type Hinting: Enforce strong typing for clarity and error prevention, avoiding Any.
  • Pytest Patterns: Implement powerful, parametrized tests for comprehensive coverage.
  • Use Case: When starting a new Python project or contributing to an existing one, this Skill ensures your code adheres to best practices, reducing bugs and improving collaboration.

Quick Start

import pytest

@pytest.mark.parametrize( ("input_value", "expected"), [ ("hello", "HELLO"), ("world", "WORLD"), ], ) def test_uppercase(input_value: str, expected: str) -> None: assert my_function(input_value) == expected

Frequently Asked Questions about python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce type hints and modern Python syntax across my codebase?▼

Type hints and modern Python syntax enforce code clarity and catch errors early. This Skill applies strict typing, requires forward references with `from __future__ import annotations`, and uses explicit generic types like `list[T]` and `dict[K, V]` instead of `Any`, ensuring type safety across your entire codebase.

What's the best way to write parametrized pytest tests?▼

Parametrized pytest tests run the same test logic across multiple inputs, reducing duplication and improving coverage. This Skill uses `@pytest.mark.parametrize` to define input-output pairs, letting you test edge cases and variations systematically with clear, maintainable test code.

How do I set up Python dependency management with uv?▼

uv is a fast Python package manager that replaces pip and virtualenv workflows. This Skill applies uv-based dependency management to streamline project setup, lockfile generation, and package resolution, ensuring reproducible environments and faster installation times.

Can I apply PEP 8 and f-string standards automatically across an existing project?▼

PEP 8 compliance and f-strings ensure consistent, readable code. This Skill enforces these standards across your codebase, converting older string formatting methods to f-strings and aligning code style, reducing inconsistency when multiple contributors work on the same project.

What coding standards should I follow when starting a new Python project?▼

New Python projects need consistent standards from day one to prevent technical debt. This Skill establishes best practices: modern syntax, strong typing, parametrized tests, PEP 8 style, f-strings, and uv dependency management, ensuring your codebase is maintainable and collaborative from the start.