Python Patterns

Idiomatic Python for production code and the pytest suite that proves it, covering type hints, error handling, dataclasses, context managers, concurrency choice, package layout, fixtures, mocking boundaries, and the coverage gate. Use when writing a new Python module, reviewing Python code, adding type hints to a legacy file, choosing between threads, processes and asyncio, writing tests for new code, fixing a flaky pytest suite, or mocking an external API. Not for training loops, tensor code, and CUDA placement, use `pytorch-patterns`.

Lukk17 Updated 1 repo stars

File contents

Lukk17/agent-standards commit a1921931b1

Frequently asked questions

npx get-skill add lukk17/python-patterns