From 572f22706d0854b8201be3287e8691892c4aaf5c Mon Sep 17 00:00:00 2001 From: LngelKyo Date: Tue, 1 Sep 2026 17:34:17 +0900 Subject: [PATCH] [CI] Restore ruff-format on test_target_codegen_c_host.py #20131 left a 3-line wrapped call in test_round that ruff-format (line-length = 100) rejoins into one line, so pre-commit run --all-files fails on every open PR. Reformat the line; no other change. Reproduce with: uvx ruff@0.12.3 format --check tests/python/codegen/test_target_codegen_c_host.py --- tests/python/codegen/test_target_codegen_c_host.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/python/codegen/test_target_codegen_c_host.py b/tests/python/codegen/test_target_codegen_c_host.py index fbad83845063..708ebb202a99 100644 --- a/tests/python/codegen/test_target_codegen_c_host.py +++ b/tests/python/codegen/test_target_codegen_c_host.py @@ -197,9 +197,7 @@ def check_c(): # semantics every other backend and the constant folder use) differs # from ties-away-from-zero. np.random.rand never produces them, so the # random tail alone cannot exercise the tie rule. - midpoints = np.array( - [0.5, 1.5, 2.5, 3.5, -0.5, -1.5, -2.5, -3.5], dtype="float32" - ) + midpoints = np.array([0.5, 1.5, 2.5, 3.5, -0.5, -1.5, -2.5, -3.5], dtype="float32") a_np = np.concatenate( [midpoints, np.random.rand(n - len(midpoints)).astype("float32")] ).astype("float32")