- pyproject.toml: add [tool.ruff] config suppressing E402/W293 globally, F841/E741/E702 in tests, E741 in scripts - inventory.py: split semicolon import (E702) - recipes.py: fix logger -> log (F821 undefined name) - shopping.py: rename l -> lnk in list comprehension (E741) - format_conversion.py: noqa F841 on CUDA flag (used as future hook) - backfill_keywords.py: rename done -> _done (F841) - ingest_purplecarrot.py: drop == True comparison (E712) - Auto-fix: I001 import sorting, F401 unused imports across all files
18 lines
432 B
Python
18 lines
432 B
Python
"""Quality assessment schemas (integer IDs, SQLite-compatible)."""
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Dict, List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class QualityAssessment(BaseModel):
|
|
id: int
|
|
receipt_id: int
|
|
overall_score: float
|
|
is_acceptable: bool
|
|
metrics: Dict[str, Any] = {}
|
|
improvement_suggestions: List[str] = []
|
|
created_at: str
|
|
|
|
model_config = {"from_attributes": True}
|