Skip to content

Commit e4e5753

Browse files
authored
111 fix linting for extension (#114)
* fixed extension liniting errors * fixed compile errors in background.ts * fixed python lint errors * fixed python liniting issues * ruff formatting fixes
1 parent 170b1f2 commit e4e5753

32 files changed

Lines changed: 7058 additions & 7006 deletions

‎workflows/cli.py‎

Lines changed: 199 additions & 145 deletions
Large diffs are not rendered by default.

‎workflows/examples/scripts/demos/cloud_browser_demo.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def main():
3535
workflow = Workflow.load_from_file(
3636
str(workflow_file),
3737
llm=llm,
38-
use_cloud=True # Enable cloud browser
38+
use_cloud=True, # Enable cloud browser
3939
)
4040

4141
try:

‎workflows/examples/scripts/demos/generation_mode_demo.py‎

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ async def demo_generate_and_run():
5454

5555
try:
5656
workflow = await healing_service.generate_workflow_from_prompt(
57-
prompt=task,
58-
agent_llm=agent_llm,
59-
extraction_llm=extraction_llm
57+
prompt=task, agent_llm=agent_llm, extraction_llm=extraction_llm
6058
)
6159

6260
if not workflow:
@@ -93,11 +91,7 @@ async def demo_generate_and_run():
9391
print('💾 Step 2: Saving workflow to storage...')
9492

9593
try:
96-
metadata = storage_service.save_workflow(
97-
workflow=workflow,
98-
generation_mode='browser_use',
99-
original_task=task
100-
)
94+
metadata = storage_service.save_workflow(workflow=workflow, generation_mode='browser_use', original_task=task)
10195

10296
print('✅ Workflow saved!')
10397
print()
@@ -134,22 +128,18 @@ async def demo_generate_and_run():
134128

135129
try:
136130
# Create workflow instance
137-
workflow_instance = Workflow(
138-
workflow_schema=retrieved_workflow,
139-
llm=workflow_llm,
140-
page_extraction_llm=extraction_llm
141-
)
131+
workflow_instance = Workflow(workflow_schema=retrieved_workflow, llm=workflow_llm, page_extraction_llm=extraction_llm)
142132

143133
# Run as tool if there are input parameters, otherwise run directly
144134
if workflow.input_schema:
145-
prompt = "Execute the workflow with default values"
135+
prompt = 'Execute the workflow with default values'
146136
print(f' Running as tool with prompt: "{prompt}"')
147137
result = await workflow_instance.run_as_tool(prompt)
148138
else:
149139
print(' Running without parameters (deterministic execution)')
150140
# For workflows without inputs, we'd need to provide an empty inputs dict
151141
# This is a simple demo, so we'll just show the concept
152-
result = {"status": "Would execute workflow here"}
142+
result = {'status': 'Would execute workflow here'}
153143

154144
print('✅ Workflow execution completed!')
155145
print()
@@ -160,6 +150,7 @@ async def demo_generate_and_run():
160150
except Exception as e:
161151
print(f'❌ Error running workflow: {e}')
162152
import traceback
153+
163154
traceback.print_exc()
164155
return
165156

0 commit comments

Comments
 (0)