style: ruff format 10 python files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-19 13:49:59 -05:00
parent 9d6b68760f
commit 6a5829e0ff
10 changed files with 41 additions and 67 deletions

View File

@@ -98,9 +98,7 @@ async def get_alert_rule(
db=db, tenant_id=tenant_id, site_id=site_id, rule_id=rule_id
)
if not result:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found"
)
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found")
return result
@@ -124,9 +122,7 @@ async def update_alert_rule(
db=db, tenant_id=tenant_id, site_id=site_id, rule_id=rule_id, data=data
)
if not result:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found"
)
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found")
return result
@@ -149,9 +145,7 @@ async def delete_alert_rule(
db=db, tenant_id=tenant_id, site_id=site_id, rule_id=rule_id
)
if not deleted:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found"
)
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Alert rule not found")
# ---------------------------------------------------------------------------