Skip to content

Commit 1a9c82b

Browse files
style: reformat for rustfmt 1.96 / ruff 0.15 (cargo fmt + ruff format) (#155)
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.
1 parent ee5a61d commit 1a9c82b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

crates/hm-dsl-engine/harmont-py/tests/test_setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""`.setup()` splices a prep step into a toolchain's install chain so that
22
action leaves fork from it. One parametrized test over every install-bearing
33
toolchain object."""
4+
45
from __future__ import annotations
56

67
import json

crates/hm/tests/cmd_init.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@ fn init_rust_creates_pipeline_py() {
2424
assert!(pipeline.exists(), "expected {}", pipeline.display());
2525

2626
let content = std::fs::read_to_string(&pipeline).unwrap();
27-
assert!(content.contains("@hm.pipeline"), "expected pipeline decorator");
27+
assert!(
28+
content.contains("@hm.pipeline"),
29+
"expected pipeline decorator"
30+
);
2831
assert!(
2932
content.contains("hm.rust.project("),
3033
"expected rust.project() entrypoint, got:\n{content}"
3134
);
32-
assert!(content.contains(".ci()"), "expected the one-call .ci() DAG, got:\n{content}");
35+
assert!(
36+
content.contains(".ci()"),
37+
"expected the one-call .ci() DAG, got:\n{content}"
38+
);
3339
assert!(
3440
!content.contains("rust.toolchain("),
3541
"template should not use the legacy toolchain() API, got:\n{content}"

0 commit comments

Comments
 (0)