Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/black/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def schedule_formatting(
executor, format_file_in_place, src, fast, mode, write_back, lock
)
): src
for src in sorted(sources)
for src in sorted(sources, key=lambda f: (-f.stat().st_size, f))
}
pending = tasks.keys()
try:
Expand Down
Loading