python-anti-patterns
Installation
SKILL.md
In this repository
- Python lives in
backend/,services/. After edits runmake formatandmake lintfrom repo root (see.cursor/commands/lint.md). - Async: Do not block the event loop. If blocking is required (e.g. sync RPC), use
await asyncio.to_thread(blocking_func, ...); see.cursor/rules/fastapi-python-best-practices.md. - Response models: Use Pydantic/SQLModel response schemas (not raw ORM models). In Pydantic v2 use
model_validate(orm_object), notfrom_orm. - Full context:
.cursor/skills/README.mdand.cursor/rules/.
Python Anti-Patterns Checklist
A reference checklist of common mistakes and anti-patterns in Python code. Review this before finalizing implementations to catch issues early.