Skip to content

Commit d953a1c

Browse files
committed
fix formatting
1 parent 6c26ad1 commit d953a1c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

codeflash/benchmarking/replay_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_next_arg_and_return(
2929
db = sqlite3.connect(trace_file)
3030
cur = db.cursor()
3131
limit = num_to_get
32-
32+
3333
normalized_file_path = Path(file_path).as_posix()
3434

3535
if class_name is not None:

codeflash/code_utils/checkpoint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import datetime
44
import json
5-
import sys
65
import time
76
import uuid
87
from pathlib import Path

codeflash/code_utils/env_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def get_cached_gh_event_data() -> dict[str, Any]:
120120
event_path = os.getenv("GITHUB_EVENT_PATH")
121121
if not event_path:
122122
return {}
123-
with Path(event_path).open(encoding='utf-8') as f:
123+
with Path(event_path).open(encoding="utf-8") as f:
124124
return json.load(f) # type: ignore # noqa
125125

126126

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

0 commit comments

Comments
 (0)