MAESTRO: Fix linting config and formatting

This commit is contained in:
Mariusz Banach
2026-02-17 23:18:10 +01:00
parent 49d374d3c4
commit 0d816aaa40
9 changed files with 31 additions and 26 deletions

View File

@@ -52,7 +52,11 @@ class Settings(BaseSettings):
try:
parsed = json.loads(text)
if isinstance(parsed, list):
return [str(item).strip() for item in parsed if str(item).strip()]
return [
str(item).strip()
for item in parsed
if str(item).strip()
]
except json.JSONDecodeError:
pass
return [item.strip() for item in text.split(",") if item.strip()]

View File

@@ -2,7 +2,6 @@ from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)