diff --git a/app/services/background_tasks_service.py b/app/services/background_tasks_service.py index 68cf366b..a41f8fc7 100644 --- a/app/services/background_tasks_service.py +++ b/app/services/background_tasks_service.py @@ -45,6 +45,7 @@ class BackgroundTasksService: def get_running_test_runs(self, db: Session) -> list[TestRun]: """Get currently running test runs""" + # noqa: SVC-005 - Platform-level, TestRuns not vendor-scoped return db.query(TestRun).filter(TestRun.status == "running").all() def get_import_stats(self, db: Session) -> dict: diff --git a/app/services/feature_service.py b/app/services/feature_service.py index 51807872..8d29150d 100644 --- a/app/services/feature_service.py +++ b/app/services/feature_service.py @@ -444,6 +444,7 @@ class FeatureService: raise TierNotFoundError(tier_code) # Validate feature codes exist + # noqa: SVC-005 - Features are platform-level, not vendor-scoped valid_codes = { f.code for f in db.query(Feature.code).filter(Feature.is_active == True).all() # noqa: E712 } diff --git a/app/services/inventory_service.py b/app/services/inventory_service.py index b09abdba..43ab3fba 100644 --- a/app/services/inventory_service.py +++ b/app/services/inventory_service.py @@ -754,6 +754,7 @@ class InventoryService: self, db: Session ) -> AdminVendorsWithInventoryResponse: """Get list of vendors that have inventory entries (admin only).""" + # noqa: SVC-005 - Admin function, intentionally cross-vendor vendors = ( db.query(Vendor).join(Inventory).distinct().order_by(Vendor.name).all() ) diff --git a/app/services/marketplace_product_service.py b/app/services/marketplace_product_service.py index df314839..1aa5344a 100644 --- a/app/services/marketplace_product_service.py +++ b/app/services/marketplace_product_service.py @@ -436,6 +436,7 @@ class MarketplaceProductService: InventorySummaryResponse if inventory found, None otherwise """ try: + # noqa: SVC-005 - Admin/internal function for inventory lookup by GTIN inventory_entries = db.query(Inventory).filter(Inventory.gtin == gtin).all() if not inventory_entries: return None