From 5cf325ab42f417d92e4af3deca18078dcc55ec00 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 17 Jul 2026 17:29:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20black=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3(line-length=3D120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/select_unit_tests.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/ci/select_unit_tests.py b/scripts/ci/select_unit_tests.py index 58eec6723..faac72e8e 100644 --- a/scripts/ci/select_unit_tests.py +++ b/scripts/ci/select_unit_tests.py @@ -170,9 +170,7 @@ def select_tests(changed_files): if matches: for m in matches: selected.add(m) - print( - f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}" - ) + print(f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}") else: print(f"[nomatch] {f} (module: {module_name}) 未找到匹配的测试文件") @@ -215,9 +213,7 @@ def main(): if gh_output: with open(gh_output, "a") as f: f.write(f"test_count={len(selected)}\n") - f.write( - "mode=" + ("incremental" if "incremental" in mode else "full") + "\n" - ) + f.write("mode=" + ("incremental" if "incremental" in mode else "full") + "\n") # 退出码:0=增量, 1=全量(供CI判断) sys.exit(0 if "incremental" in mode else 1)