Skip to content

Commit d84612c

Browse files
committed
fix(audit): resolve linting and formatting errors
1 parent 8fba78e commit d84612c

9 files changed

Lines changed: 11 additions & 14 deletions

autogen_dashboard/session_runner.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
from autogen_starter.config import Settings
4444
from autogen_starter.providers import ProviderConfigError, collect_provider_statuses, create_model_client
4545
from maf_starter.approval_policy import (
46-
ApprovalScope,
4746
classify_validation_commands,
4847
classify_write_operations,
4948
is_execution_approved,
@@ -54,8 +53,6 @@
5453
AutoAnswerRecord,
5554
RunOrchestrationState,
5655
RunStagePauseKind,
57-
SpecialistHandoff,
58-
SpecialistState,
5956
StageName,
6057
StageSummary,
6158
specialist_role_for_stage,

maf_starter/provider_fallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def get_final_response(self):
6565
AnthropicClient = None
6666

6767
from maf_starter.config import Settings, activate_run_scope, reset_run_scope
68-
from maf_starter.execution_profile import CLOUD_SAFE_PROFILE, LOCAL_PROFILE, ExecutionProfile
68+
from maf_starter.execution_profile import LOCAL_PROFILE, ExecutionProfile
6969
from maf_starter.routing_policy import RoutingPlan, build_routing_plan
7070
from maf_starter.routing_types import CapabilityChange, ChainStep, RouteAttempt
7171

maf_starter/routing_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from agent_framework import Message
77

88
from maf_starter.config import Settings
9-
from maf_starter.routing_types import CapabilityChange, ChainStep, RouteAttempt, RouteLane, parse_chain_steps
9+
from maf_starter.routing_types import CapabilityChange, ChainStep, RouteAttempt, RouteLane
1010

1111

1212
SIMPLE_KEYWORDS = (

maf_starter/team_factory.py

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

55
from agent_framework import WorkflowBuilder
66

7-
from maf_starter.agent_factory import build_agent, build_agent_for_model
7+
from maf_starter.agent_factory import build_agent_for_model
88
from maf_starter.config import Settings, load_settings
99
from maf_starter.orchestration import (
1010
CANONICAL_STAGE_NAMES,

tests/test_loop_workers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ def __init__(self) -> None:
7272
self.fan_out = None
7373
self.fan_in = None
7474
def add_fan_out_edges(self, source, targets):
75-
self.fan_out = (source, tuple(targets)); return self
75+
self.fan_out = (source, tuple(targets))
76+
return self
7677
def add_fan_in_edges(self, sources, target):
77-
self.fan_in = (tuple(sources), target); return self
78-
def build(self): return self
78+
self.fan_in = (tuple(sources), target)
79+
return self
80+
def build(self):
81+
return self
7982

8083
builder = BuilderSpy()
8184
result = build_maf_fanout_workflow("dispatcher", [1, 2, 3, 4], "aggregator", builder=builder)

tests/test_phase1_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from autogen_dashboard.app import create_app
99
from autogen_dashboard.dependencies import get_session_service
10-
from autogen_dashboard.schemas import RepoContext, SessionActionResponse, SessionCreateResponse, SessionDetail
10+
from autogen_dashboard.schemas import RepoContext, SessionDetail
1111

1212

1313
def utc_now() -> datetime:

tests/test_phase3_specialists.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import os
43
import shutil
54
import unittest
65
import uuid

tests/test_phase7_e2e.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
from __future__ import annotations
2-
31
"""Phase 7 end-to-end integration tests.
42
53
Validates three Phase 7 success criteria:
64
1. Cloud-safe profile rejects subprocess providers with IncompatibleProviderError.
75
2. Local profile accepts all providers without raising.
86
3. Async dispatch via WorkerBoundary.submit_async returns run_id without blocking.
97
"""
8+
from __future__ import annotations
109

1110
import asyncio
1211
import unittest

tests/test_workspace_contract.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import shutil
44
import subprocess
5-
import tempfile
65
import unittest
76
import uuid
87
from datetime import datetime, timezone

0 commit comments

Comments
 (0)