Skip to content

Commit 81f4c73

Browse files
committed
fix: resolve linter errors (unused imports, f-strings)
1 parent 3e48a82 commit 81f4c73

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

samples/pytest_ai_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import ast
1919
import json
2020
import re
21-
import sys
2221

2322
from copilot import CopilotClient
2423

samples/robot_copilot_library.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import ast
2323
import json
2424
import re
25-
import sys
26-
from pathlib import Path
2725

2826
from copilot import CopilotClient
2927

@@ -334,7 +332,7 @@ async def main():
334332
keywords = ["zero", "empty", "division", "len"]
335333
found = [kw for kw in keywords if kw in review]
336334
if not found:
337-
raise AssertionError(f"Bug not detected in review")
335+
raise AssertionError("Bug not detected in review")
338336
detail = f"Review:\n{response.data.content[:200]}"
339337

340338
elif "JSON" in scenario["when"]:
@@ -357,7 +355,7 @@ async def main():
357355

358356
for then_step in scenario["then"]:
359357
print(f" Then {then_step} ✅")
360-
print(f" Result: PASS")
358+
print(" Result: PASS")
361359
print(f" {detail}")
362360
passed += 1
363361

scripts/run_agent_scenarios.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
from dataclasses import dataclass
2828
from pathlib import Path
2929

30-
from copilot import CopilotClient
31-
3230

3331
@dataclass
3432
class ScenarioResult:
@@ -94,7 +92,6 @@ async def run_sample_module(sample_path: Path, test_inputs: dict | None = None)
9492

9593
# Get captured output
9694
output = stdout_capture.getvalue()
97-
errors = stderr_capture.getvalue()
9895

9996
# Clean output (ASCII-only for cross-platform compatibility)
10097
def clean_text(text: str) -> str:

0 commit comments

Comments
 (0)