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 a192193 10 files · 65.2 KB Updated

File contents

Lukk17/agent-standards/tree/main/.agents/skills/python-patterns commit a1921931b1

Frequently asked questions

npx skillmds@latest add lukk17/python-patterns