Skip to content

Commit 1c6a11c

Browse files
committed
precommit fix
1 parent 5d82d86 commit 1c6a11c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from __future__ import annotations
22

3-
import re
4-
53
import ast
64
import concurrent.futures
75
import os
6+
import re
87
import subprocess
98
import time
109
import uuid
@@ -1194,13 +1193,11 @@ def run_and_parse_tests(
11941193
f"stdout: {run_result.stdout}\n"
11951194
f"stderr: {run_result.stderr}\n"
11961195
)
1197-
if 'ModuleNotFoundError' in run_result.stdout:
1196+
if "ModuleNotFoundError" in run_result.stdout:
11981197
from rich.text import Text
1199-
match = re.search(r'^.*ModuleNotFoundError.*$', run_result.stdout, re.MULTILINE).group()
1200-
panel = Panel(
1201-
Text.from_markup(f"⚠️ {match} ", style="bold red"),
1202-
expand=False,
1203-
)
1198+
1199+
match = re.search(r"^.*ModuleNotFoundError.*$", run_result.stdout, re.MULTILINE).group()
1200+
panel = Panel(Text.from_markup(f"⚠️ {match} ", style="bold red"), expand=False)
12041201
console.print(panel)
12051202
if testing_type in {TestingMode.BEHAVIOR, TestingMode.PERFORMANCE}:
12061203
results, coverage_results = parse_test_results(

0 commit comments

Comments
 (0)