Skip to content

Commit 4b37f27

Browse files
committed
linting
1 parent 3f1f8d3 commit 4b37f27

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

codeflash/context/code_context_extractor.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ def extract_code_markdown_context_from_files(
334334
helpers_of_fto.get(file_path, set()) | helpers_of_helpers.get(file_path, set())
335335
),
336336
)
337-
code_string_context = CodeString(code=code_context, file_path=file_path.resolve().relative_to(project_root_path.resolve()))
337+
code_string_context = CodeString(
338+
code=code_context, file_path=file_path.resolve().relative_to(project_root_path.resolve())
339+
)
338340
code_context_markdown.code_strings.append(code_string_context)
339341
# Extract code from file paths containing helpers of helpers
340342
for file_path, helper_function_sources in helpers_of_helpers_no_overlap.items():
@@ -365,7 +367,9 @@ def extract_code_markdown_context_from_files(
365367
project_root=project_root_path,
366368
helper_functions=list(helpers_of_helpers_no_overlap.get(file_path, set())),
367369
)
368-
code_string_context = CodeString(code=code_context, file_path=file_path.resolve().relative_to(project_root_path.resolve()))
370+
code_string_context = CodeString(
371+
code=code_context, file_path=file_path.resolve().relative_to(project_root_path.resolve())
372+
)
369373
code_context_markdown.code_strings.append(code_string_context)
370374
return code_context_markdown
371375

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,9 +1529,7 @@ def establish_original_code_baseline(
15291529
test_env = self.get_test_env(codeflash_loop_index=0, codeflash_test_iteration=0, codeflash_tracer_disable=1)
15301530

15311531
if self.function_to_optimize.is_async:
1532-
from codeflash.code_utils.instrument_existing_tests import (
1533-
instrument_source_module_with_async_decorators,
1534-
)
1532+
from codeflash.code_utils.instrument_existing_tests import instrument_source_module_with_async_decorators
15351533

15361534
success, instrumented_source = instrument_source_module_with_async_decorators(
15371535
self.function_to_optimize.file_path, self.function_to_optimize, TestingMode.BEHAVIOR

0 commit comments

Comments
 (0)