From fad643985ec6d1aef8b7fcaffbd24b69a0f28f0f Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Sat, 11 Oct 2025 12:52:05 +0200 Subject: [PATCH] fix: python formatting --- tools/TaskSorter/TaskSorter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/TaskSorter/TaskSorter.py b/tools/TaskSorter/TaskSorter.py index a2d047af55..ed82d865af 100644 --- a/tools/TaskSorter/TaskSorter.py +++ b/tools/TaskSorter/TaskSorter.py @@ -76,7 +76,9 @@ def main(cn_base_path, global_resources): if not file.endswith(".json"): # 判断是否为 JSON 文件 continue file_path = Path(root) / file - with open(file_path, "r", encoding="utf-8-sig") as f: # Changed to utf-8-sig + with open( + file_path, "r", encoding="utf-8-sig" + ) as f: # Changed to utf-8-sig cn_tasks[file_path.relative_to(cn_base_path)] = json.load( f, object_pairs_hook=raise_on_duplicate_keys ) @@ -117,7 +119,9 @@ def main(cn_base_path, global_resources): continue file_path = Path(root) / file relative_path = file_path.relative_to(overseas_path) - with open(file_path, "r", encoding="utf-8-sig") as f: # Changed to utf-8-sig + with open( + file_path, "r", encoding="utf-8-sig" + ) as f: # Changed to utf-8-sig tasks = json.load(f, object_pairs_hook=raise_on_duplicate_keys) base_order = cn_order.get(relative_path, [])