Skip to content

Commit dad65b3

Browse files
committed
fix: remove invalid pass through attempts of text=true throughout scripts
1 parent b20c803 commit dad65b3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

noxfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ def update_demo(session: Session, demo: RepoMetadata) -> None:
196196
if "maturin" in demo.app_name:
197197
args.append("--add-rust-extension")
198198

199-
demo_env: dict[str, Any] = {
200-
key.replace(demo.app_name.upper(), "ROBUST_DEMO"): value for key, value in asdict(demo).items()
201-
}
199+
demo_env: dict[str, Any] = {f"ROBUST_DEMO__{key.upper()}": value for key, value in asdict(demo).items()}
202200
session.run("python", UPDATE_DEMO_SCRIPT, *args, env=demo_env)
203201

204202

scripts/update-demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ def _checkout_demo_develop_or_existing_branch(demo_path: Path, branch: str) -> N
103103
def __has_existing_local_demo_branch(demo_path: Path, branch: str) -> bool:
104104
"""Returns whether a local branch has been made for the given branch."""
105105
with work_in(demo_path):
106-
local_result: Optional[CompletedProcess] = git("branch", "--list", branch, text=True)
106+
local_result: Optional[CompletedProcess] = git("branch", "--list", branch)
107107
return local_result is not None and branch in local_result.stdout
108108

109109

110110
def __has_existing_remote_demo_branch(demo_path: Path, branch: str) -> bool:
111111
"""Returns whether a remote branch has been made for the given branch."""
112112
with work_in(demo_path):
113-
remote_result: Optional[CompletedProcess] = git("ls-remote", DEMO.remote, branch, text=True)
113+
remote_result: Optional[CompletedProcess] = git("ls-remote", DEMO.remote, branch)
114114
return remote_result is not None and branch in remote_result.stdout
115115

116116

0 commit comments

Comments
 (0)