Skip to content

Commit d02b420

Browse files
hidai25claude
andcommitted
Pin Black to 24.10.0 and reformat files
Ensures consistent formatting between local and CI environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4556696 commit d02b420

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

evalview/adapters/openai_assistants_adapter.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,16 @@ async def _extract_steps(self, client, thread_id: str, run_id: str) -> List[Step
154154
step_id=tool_call.id,
155155
step_name=tool_call.function.name,
156156
tool_name=tool_call.function.name,
157-
parameters=json.loads(tool_call.function.arguments)
158-
if tool_call.function.arguments
159-
else {},
160-
output=tool_call.function.output
161-
if hasattr(tool_call.function, "output")
162-
else None,
157+
parameters=(
158+
json.loads(tool_call.function.arguments)
159+
if tool_call.function.arguments
160+
else {}
161+
),
162+
output=(
163+
tool_call.function.output
164+
if hasattr(tool_call.function, "output")
165+
else None
166+
),
163167
success=True,
164168
metrics=StepMetrics(latency=0.0, cost=0.0),
165169
)

evalview/tracking/database.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ def store_result(
173173
tool_accuracy,
174174
output_quality,
175175
1 if sequence_correct else 0 if sequence_correct is not None else None,
176-
1
177-
if hallucination_detected
178-
else 0
179-
if hallucination_detected is not None
180-
else None,
176+
(
177+
1
178+
if hallucination_detected
179+
else 0 if hallucination_detected is not None else None
180+
),
181181
1 if safety_passed else 0 if safety_passed is not None else None,
182182
git_commit,
183183
git_branch,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev = [
4040
"pytest>=7.4.0",
4141
"pytest-asyncio>=0.21.0",
4242
"pytest-cov>=4.1.0",
43-
"black>=23.0.0",
43+
"black==24.10.0",
4444
"mypy>=1.7.0",
4545
"ruff>=0.1.0",
4646
]

0 commit comments

Comments
 (0)