Skip to content

Commit bda6c83

Browse files
committed
fix: swap to nox session install and run script for merge-demo-feature session along with fixing arg passthrough
1 parent 0198495 commit bda6c83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ def merge_demo_feature(session: Session, demo: RepoMetadata) -> None:
222222
Assumes that all PR's already exist.
223223
"""
224224
args: list[str] = [*MERGE_DEMO_FEATURE_OPTIONS]
225+
if session.posargs:
226+
args = [*session.posargs, *args]
225227
if "maturin" in demo.app_name:
226228
args.append("--add-rust-extension")
227-
if session.posargs:
228-
args.extend(session.posargs)
229-
session.run("uv", "run", MERGE_DEMO_FEATURE_SCRIPT, *args)
229+
session.install_and_run_script(MERGE_DEMO_FEATURE_SCRIPT, *args)
230230

231231

232232
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="setup-release")

0 commit comments

Comments
 (0)