chore: collapse multi-line argument definitions into single lines across multiple modules

This commit is contained in:
2025-11-04 07:10:37 +00:00
parent e9ced4a493
commit d58e2b56f2
44 changed files with 163 additions and 469 deletions
+2 -6
View File
@@ -40,9 +40,7 @@ class WorkflowEngine:
self.tool_executor = tool_executor
self.max_workers = max_workers
def _evaluate_condition(
self, condition: str, context: WorkflowExecutionContext
) -> bool:
def _evaluate_condition(self, condition: str, context: WorkflowExecutionContext) -> bool:
if not condition:
return True
@@ -188,9 +186,7 @@ class WorkflowEngine:
result = future.result()
context.log_event("step_completed", step.step_id, result)
except Exception as e:
context.log_event(
"step_failed", step.step_id, {"error": str(e)}
)
context.log_event("step_failed", step.step_id, {"error": str(e)})
else:
pending_steps = workflow.get_initial_steps()
+2 -6
View File
@@ -104,9 +104,7 @@ class WorkflowStorage:
conn = sqlite3.connect(self.db_path, check_same_thread=False)
cursor = conn.cursor()
cursor.execute(
"SELECT workflow_data FROM workflows WHERE workflow_id = ?", (workflow_id,)
)
cursor.execute("SELECT workflow_data FROM workflows WHERE workflow_id = ?", (workflow_id,))
row = cursor.fetchone()
conn.close()
@@ -174,9 +172,7 @@ class WorkflowStorage:
cursor.execute("DELETE FROM workflows WHERE workflow_id = ?", (workflow_id,))
deleted = cursor.rowcount > 0
cursor.execute(
"DELETE FROM workflow_executions WHERE workflow_id = ?", (workflow_id,)
)
cursor.execute("DELETE FROM workflow_executions WHERE workflow_id = ?", (workflow_id,))
conn.commit()
conn.close()