Skip to content

Commit 7d021bb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8fbd58b commit 7d021bb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pydra/workers/oar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ async def run(self, job: "Job[base.TaskType]", rerun: bool = False) -> "Result":
139139
# for pyt3.8 we could you missing_ok=True
140140
(job.cache_root / f"{checksum}.lock").unlink()
141141
cmd_re = ("oarstat", "-J", "--sql", f"resubmit_job_id='{jobid}'")
142-
_, stdout, _ = await base.read_and_display_async(*cmd_re, hide_display=True)
142+
_, stdout, _ = await base.read_and_display_async(
143+
*cmd_re, hide_display=True
144+
)
143145
if not stdout:
144146
raise RuntimeError(
145147
"Job information about resubmission of job {jobid} not found"

pydra/workers/tests/test_worker.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def test_oar_wf_cf(tmpdir):
626626
wf.plugin = "cf"
627627
with Submitter(worker="oar", cache_root=tmpdir) as sub:
628628
res = sub(wf)
629-
629+
630630
outputs = res.outputs
631631
assert outputs.out == 9
632632
script_dir = tmpdir / "oar_scripts"
@@ -672,7 +672,9 @@ def test_oar_args_2(tmpdir):
672672
task = SleepAddOne(x=1)
673673
# submit workflow and every task as oar job
674674
with pytest.raises(RuntimeError, match="Error returned from oarsub:"):
675-
with Submitter(worker="oar", cache_root=tmpdir, oarsub_args="-l nodes=2 --invalid") as sub:
675+
with Submitter(
676+
worker="oar", cache_root=tmpdir, oarsub_args="-l nodes=2 --invalid"
677+
) as sub:
676678
sub(task)
677679

678680

0 commit comments

Comments
 (0)