mirror of
https://github.com/furyhawk/agent_delta.git
synced 2026-07-21 02:05:36 +00:00
1.2 KiB
1.2 KiB
description
| description |
|---|
| Review code changes against project conventions |
Review all staged and unstaged changes in the current branch.
For each changed file, verify:
Architecture:
- Routes only call services, never repositories
- Services raise domain exceptions (NotFoundError, AlreadyExistsError, etc.), not HTTP exceptions
- Repositories use
db.flush()+db.refresh(), neverdb.commit() - DI uses Annotated aliases from
deps.py(CurrentUser, *Svc), not rawDepends()in signatures
Schemas & Types:
- Separate Create/Update/Read/List Pydantic models
- Type hints on all function signatures (params + return)
- Modern syntax:
str | NonenotOptional[str] - Route return type is
-> Any
Code Quality:
- No debug code (print, commented-out code, TODO without issue reference)
- No security issues (SQL injection, exposed secrets, missing auth)
- Consistent naming (snake_case functions, PascalCase classes)
- Imports ordered: stdlib → third-party → local
Validation:
- Run
cd backend && uv run ruff check . - Run
cd backend && uv run pytest(if test files changed)
Provide findings with specific file:line references and suggest fixes.