Skip to content

Commit 1799cb8

Browse files
committed
fix lint
1 parent a8d04ed commit 1799cb8

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

src/mcp_agent/cli/cloud/commands/workflows/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
"resume_workflow",
1010
"suspend_workflow",
1111
"cancel_workflow",
12-
]
12+
]

src/mcp_agent/cli/cloud/commands/workflows/cancel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .main import cancel_workflow
44

5-
__all__ = ["cancel_workflow"]
5+
__all__ = ["cancel_workflow"]

src/mcp_agent/cli/cloud/commands/workflows/cancel/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Workflow cancel command implementation."""
22

3-
import json
43
from typing import Optional
54

65
import typer
@@ -59,7 +58,7 @@ async def _cancel_workflow_async(
5958
success = success.lower() == 'true'
6059

6160
if success:
62-
console.print(f"[yellow]⚠[/yellow] Successfully cancelled workflow")
61+
console.print("[yellow]⚠[/yellow] Successfully cancelled workflow")
6362
console.print(f" Run ID: [cyan]{run_id}[/cyan]")
6463
if reason:
6564
console.print(f" Reason: [dim]{reason}[/dim]")
@@ -85,4 +84,4 @@ def cancel_workflow(
8584
mcp-agent cloud workflows cancel app_abc123 run_xyz789
8685
mcp-agent cloud workflows cancel https://server.example.com run_xyz789 --reason "User requested cancellation"
8786
"""
88-
run_async(_cancel_workflow_async(server_id_or_url, run_id, reason))
87+
run_async(_cancel_workflow_async(server_id_or_url, run_id, reason))

src/mcp_agent/cli/cloud/commands/workflows/describe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .main import describe_workflow
44

5-
__all__ = ["describe_workflow"]
5+
__all__ = ["describe_workflow"]

src/mcp_agent/cli/cloud/commands/workflows/describe/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def print_workflow_status(workflow_status: dict) -> None:
109109
from datetime import datetime
110110
created_dt = datetime.fromisoformat(created_at.replace('Z', '+00:00'))
111111
created_at = created_dt.strftime('%Y-%m-%d %H:%M:%S')
112-
except:
112+
except (ValueError, TypeError):
113113
pass # Keep original format if parsing fails
114114

115115
console.print(
@@ -145,4 +145,4 @@ def _format_status(status: str) -> str:
145145
elif "continued" in status_lower:
146146
return "🔁 Continued as New"
147147
else:
148-
return f"❓ {status}"
148+
return f"❓ {status}"

src/mcp_agent/cli/cloud/commands/workflows/resume/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .main import resume_workflow, suspend_workflow
44

5-
__all__ = ["resume_workflow", "suspend_workflow"]
5+
__all__ = ["resume_workflow", "suspend_workflow"]

src/mcp_agent/cli/cloud/commands/workflows/resume/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def resume_workflow(
9393
if payload:
9494
try:
9595
json.loads(payload)
96-
console.print(f"[dim]Resuming with JSON payload...[/dim]")
96+
console.print("[dim]Resuming with JSON payload...[/dim]")
9797
except json.JSONDecodeError:
98-
console.print(f"[dim]Resuming with text payload...[/dim]")
98+
console.print("[dim]Resuming with text payload...[/dim]")
9999

100100
run_async(_signal_workflow_async(server_id_or_url, run_id, "resume", payload))
101101

@@ -119,8 +119,8 @@ def suspend_workflow(
119119
if payload:
120120
try:
121121
json.loads(payload)
122-
console.print(f"[dim]Suspending with JSON payload...[/dim]")
122+
console.print("[dim]Suspending with JSON payload...[/dim]")
123123
except json.JSONDecodeError:
124-
console.print(f"[dim]Suspending with text payload...[/dim]")
124+
console.print("[dim]Suspending with text payload...[/dim]")
125125

126-
run_async(_signal_workflow_async(server_id_or_url, run_id, "suspend", payload))
126+
run_async(_signal_workflow_async(server_id_or_url, run_id, "suspend", payload))

0 commit comments

Comments
 (0)