From c287207ed9919d6c67c7768a1984ef4f743bb027 Mon Sep 17 00:00:00 2001 From: Marko Vejnovic Date: Wed, 24 Jun 2026 18:45:38 +0000 Subject: [PATCH] style: reformat for rustfmt 1.96 / ruff 0.15 (cargo fmt + ruff format) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The :rust: fmt and :python: fmt CI steps failed against the newer toolchain versions (rustfmt 1.96.0, ruff 0.15.14) — cmd_init.rs assert! wrapping and test_setup.py. Apply the formatters; no behavior change. --- crates/hm-dsl-engine/harmont-py/tests/test_setup.py | 1 + crates/hm/tests/cmd_init.rs | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/hm-dsl-engine/harmont-py/tests/test_setup.py b/crates/hm-dsl-engine/harmont-py/tests/test_setup.py index 21d69e56..9d835f77 100644 --- a/crates/hm-dsl-engine/harmont-py/tests/test_setup.py +++ b/crates/hm-dsl-engine/harmont-py/tests/test_setup.py @@ -1,6 +1,7 @@ """`.setup()` splices a prep step into a toolchain's install chain so that action leaves fork from it. One parametrized test over every install-bearing toolchain object.""" + from __future__ import annotations import json diff --git a/crates/hm/tests/cmd_init.rs b/crates/hm/tests/cmd_init.rs index a98d366c..9664e047 100644 --- a/crates/hm/tests/cmd_init.rs +++ b/crates/hm/tests/cmd_init.rs @@ -24,12 +24,18 @@ fn init_rust_creates_pipeline_py() { assert!(pipeline.exists(), "expected {}", pipeline.display()); let content = std::fs::read_to_string(&pipeline).unwrap(); - assert!(content.contains("@hm.pipeline"), "expected pipeline decorator"); + assert!( + content.contains("@hm.pipeline"), + "expected pipeline decorator" + ); assert!( content.contains("hm.rust.project("), "expected rust.project() entrypoint, got:\n{content}" ); - assert!(content.contains(".ci()"), "expected the one-call .ci() DAG, got:\n{content}"); + assert!( + content.contains(".ci()"), + "expected the one-call .ci() DAG, got:\n{content}" + ); assert!( !content.contains("rust.toolchain("), "template should not use the legacy toolchain() API, got:\n{content}"