ci: fix lint errors across project, update ruff.toml per-file ignores
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from minio import Minio
|
||||
import os, json
|
||||
|
||||
mc = Minio(os.environ["MINIO_ENDPOINT"], access_key=os.environ["MINIO_ACCESS_KEY"], secret_key=os.environ["MINIO_SECRET_KEY"], secure=False)
|
||||
|
||||
@@ -15,11 +17,11 @@ for o in raw_objs[:3]:
|
||||
raw_out = last.get("raw_output", "")
|
||||
ticker = o.object_name.split("/")[1]
|
||||
doc_id = o.object_name.split("/")[-2]
|
||||
|
||||
|
||||
print(f"=== {ticker} / {doc_id[:8]} ===")
|
||||
print(f" success: {data.get('success')}")
|
||||
print(f" duration: {data.get('total_duration_ms')}ms")
|
||||
|
||||
|
||||
try:
|
||||
parsed = json.loads(raw_out)
|
||||
print(f" summary: {parsed.get('summary', '')[:120]}")
|
||||
|
||||
Reference in New Issue
Block a user