Skip to content

Commit 6cb8469

Browse files
authored
Update formatter.py
add a todo comment
1 parent 6f97004 commit 6cb8469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def format_code(
137137
f"Skipping formatting {path}: {diff_lines_count} lines would change (max: {max_diff_lines})"
138138
)
139139
return original_code
140-
140+
# ToDO : We can avoid formatting the whole file again and only formatting the optimized code standalone and replace in formatted file above.
141141
_, formatted_code = apply_formatter_cmds(formatter_cmds, path, test_dir_str=None, print_status=print_status)
142142
logger.debug(f"Formatted {path} with commands: {formatter_cmds}")
143143
return formatted_code

0 commit comments

Comments
 (0)