Skip to content

Commit f3abd8a

Browse files
committed
Fix pre-commit for demo script
1 parent 8fd6d9c commit f3abd8a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Helper scripts for pytask-parallel."""

scripts/pending_status_demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def _write_tasks(path: Path, n_tasks: int, sleep_s: float, jitter_s: float) -> N
3434

3535

3636
def main() -> int:
37+
"""Run a demo pytask session to show pending/running status updates."""
3738
parser = argparse.ArgumentParser(
3839
description="Run a pytask demo to observe pending/running status updates."
3940
)
@@ -95,7 +96,8 @@ def main() -> int:
9596
env.setdefault("PYTHONUTF8", "1")
9697
if args.log_status:
9798
env.setdefault("PYTASK_PARALLEL_DEBUG_STATUS", "1")
98-
return subprocess.call(cmd, env=env)
99+
# Controlled command built from explicit args; safe for local demo usage.
100+
return subprocess.call(cmd, env=env) # noqa: S603
99101

100102

101103
if __name__ == "__main__":

0 commit comments

Comments
 (0)