Skip to content

Commit 4033c0d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cbfd9d6 commit 4033c0d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pydra/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ def pytest_generate_tests(metafunc):
3030
try:
3131
if metafunc.config.getoption("psij"):
3232
Plugins.append("psij-" + metafunc.config.getoption("psij"))
33-
if bool(shutil.which("sbatch")) and metafunc.config.getoption("psij") == "slurm":
33+
if (
34+
bool(shutil.which("sbatch"))
35+
and metafunc.config.getoption("psij") == "slurm"
36+
):
3437
Plugins.remove("slurm")
3538
except ValueError:
3639
pass
@@ -51,7 +54,10 @@ def pytest_generate_tests(metafunc):
5154
try:
5255
if metafunc.config.getoption("psij"):
5356
Plugins.append("psij-" + metafunc.config.getoption("psij"))
54-
if bool(shutil.which("sbatch")) and metafunc.config.getoption("psij") == "slurm":
57+
if (
58+
bool(shutil.which("sbatch"))
59+
and metafunc.config.getoption("psij") == "slurm"
60+
):
5561
Plugins.remove("slurm")
5662
except ValueError:
5763
pass

0 commit comments

Comments
 (0)