Skip to content

Commit 53c4abd

Browse files
Refactor .flake8 configuration for improved readability and organization; update error handling in PlanPage and router.py for clarity
1 parent 6848e81 commit 53c4abd

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.flake8

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
[flake8]
22
max-line-length = 88
33
extend-ignore = E501
4-
exclude = .venv, frontend, src/backend/tests
4+
exclude =
5+
.venv,
6+
frontend,
7+
src/frontend,
8+
src/backend/tests,
9+
*.tsx,
10+
*.ts,
11+
*.jsx,
12+
*.js
513
ignore = E203, W503, G004, G200, E402

src/backend/v3/api/router.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ async def run_orchestration_task():
333333
@app_v3.post("/plan_approval")
334334
async def plan_approval(
335335
human_feedback: messages.PlanApprovalResponse, request: Request
336-
):
336+
):
337337
"""
338338
Endpoint to receive plan approval or rejection from the user.
339339
---
@@ -462,7 +462,6 @@ async def plan_approval(
462462
{
463463
"type": WebsocketMessageType.ERROR_MESSAGE,
464464
"data": {
465-
# "content": f"Approval error: {str(e)}",
466465
"content": "An error occurred while processing your approval request.",
467466
"status": "error",
468467
"timestamp": asyncio.get_event_loop().time(),

src/frontend/src/pages/PlanPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const PlanPage: React.FC = () => {
5858
const [showBufferingText, setShowBufferingText] = useState<boolean>(false);
5959
const [agentMessages, setAgentMessages] = useState<AgentMessageData[]>([]);
6060
const formatErrorMessage = useCallback((content: string): string => {
61-
// return `⚠️ ${content}`;
6261
// Split content by newlines and add proper indentation
6362
const lines = content.split('\n');
6463
const formattedLines = lines.map((line, index) => {

0 commit comments

Comments
 (0)