Skip to content

Commit e7449c4

Browse files
author
mcp-release-bot
committed
fmt and uv
1 parent 0738701 commit e7449c4

File tree

5 files changed

+17
-343
lines changed

5 files changed

+17
-343
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ build-backend = "hatchling.build"
5252
[tool.hatch.build.targets.wheel]
5353
packages = ["src/mcp_as_a_judge"]
5454

55-
[tool.uv]
56-
dev-dependencies = [
55+
[dependency-groups]
56+
dev = [
5757
"pytest>=7.0.0",
5858
"pytest-asyncio>=0.21.0",
5959
"pytest-cov>=4.0.0",

src/mcp_as_a_judge/server.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,7 +2693,9 @@ class UserFeedbackSchema(BaseModel):
26932693
feedback_context = {
26942694
"repository_analysis": repository_analysis,
26952695
"task_description": task_metadata.description,
2696-
"task_size": task_metadata.task_size.value if task_metadata.task_size else "unknown",
2696+
"task_size": task_metadata.task_size.value
2697+
if task_metadata.task_size
2698+
else "unknown",
26972699
"workflow_state": task_metadata.state.value,
26982700
"elicitation_success": elicitation_result.success,
26992701
"questions_asked": specific_questions[:5], # Limit to avoid token bloat
@@ -3263,7 +3265,9 @@ class PlanApprovalSchema(BaseModel):
32633265
# Save plan approval interaction to database for better LLM context
32643266
approval_context = {
32653267
"task_description": task_metadata.description,
3266-
"task_size": task_metadata.task_size.value if task_metadata.task_size else "unknown",
3268+
"task_size": task_metadata.task_size.value
3269+
if task_metadata.task_size
3270+
else "unknown",
32673271
"workflow_state": task_metadata.state.value,
32683272
"plan_content": formatted_plan[:1000], # Limit to avoid token bloat
32693273
"user_approved": approved,

src/mcp_as_a_judge/utils/repository_analyzer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ def _detect_frameworks(self) -> dict:
212212

213213
def _analyze_structure(self) -> dict:
214214
"""Analyze project structure and organization patterns."""
215-
structure: dict[str, list[str]] = {"directories": [], "key_files": [], "patterns": []}
215+
structure: dict[str, list[str]] = {
216+
"directories": [],
217+
"key_files": [],
218+
"patterns": [],
219+
}
216220

217221
# Get top-level directories and files
218222
if self.repo_path.exists():

src/mcp_as_a_judge/workflow/workflow_guidance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,10 @@ async def calculate_next_stage(
606606
)
607607

608608
# Fallback: if next_tool missing/None and not completed, route to get_current_coding_task
609-
if workflow_guidance.next_tool is None and task_metadata.state != TaskState.COMPLETED:
609+
if (
610+
workflow_guidance.next_tool is None
611+
and task_metadata.state != TaskState.COMPLETED
612+
):
610613
if "get_current_coding_task" in available_name_set:
611614
workflow_guidance.next_tool = "get_current_coding_task"
612615
else:

0 commit comments

Comments
 (0)