File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 22
33import datetime
44import json
5- import sys
65import time
76import uuid
87from pathlib import Path
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments