kiwi/app/models/schemas/quality.py
pyr0ball c18bfec8f5
Some checks are pending
CI / Backend (Python) (push) Waiting to run
CI / Frontend (Vue) (push) Waiting to run
Mirror / mirror (push) Waiting to run
fix(lint): add ruff config, fix all lint errors for GitHub CI
- 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
2026-07-06 02:49:02 -07:00

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}