Loading...
Loading...
Python tooling conventions. Use when working on .py files, pyproject.toml, or Python projects. Enforce uv for package management, ty for type checking. NOT for JavaScript/TypeScript projects or shell scripts.
npx skill4agent add wyattowalsh/agents python-conventions| $ARGUMENTS | Action |
|---|---|
| Active (auto-invoked when working on Python files) | Apply all conventions below |
| Empty | Display convention summary |
| Verify tooling compliance only |
| File | Purpose |
|---|---|
| When to break conventions (legacy, corporate) |
uvuv run python ...pythonuv addpip installpyproject.tomluv add <pkg>uv pip installpip installtyruff checkruff formatuv run pytestuv run <command>uv.venvuv run| Purpose | Library | Instead of |
|---|---|---|
| Logging | | |
| Retries | | manual retry loops |
| Progress bars | | print statements |
| Web APIs | | flask |
| CLI tools | | argparse, click |
| DB migrations | | manual SQL |
| DB ORM | | sqlalchemy raw |
| UI/demos | | streamlit |
| Numerics | | manual math |
| MCP servers | | raw MCP protocol |
pyproject.tomluvruff checkruff formatuvpip installpipuv adduv pip installtymypyuv run pytestuv run ruff checkreferences/exceptions.mduvtyruffpyproject.tomluv run