Skip to content

Commit 7878da6

Browse files
authored
Merge pull request #252 from codeflash-ai/formatter-runs-it-in-order
remove set while runnin formatters
2 parents f628f31 + 2c96c4f commit 7878da6

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
@@ -22,7 +22,7 @@ def format_code(formatter_cmds: list[str], path: Path) -> str:
2222
if formatter_name == "disabled":
2323
return path.read_text(encoding="utf8")
2424
file_token = "$file" # noqa: S105
25-
for command in set(formatter_cmds):
25+
for command in formatter_cmds:
2626
formatter_cmd_list = shlex.split(command, posix=os.name != "nt")
2727
formatter_cmd_list = [path.as_posix() if chunk == file_token else chunk for chunk in formatter_cmd_list]
2828
try:

0 commit comments

Comments
 (0)