Skip to content

Commit 2030f18

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6cf7e69 commit 2030f18

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

pydra/tasks/fsl/utils/split.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def Split_output(inputs):
3737
},
3838
),
3939
]
40-
Split_input_spec = specs.SpecInfo(
41-
name="Input", fields=input_fields, bases=(specs.ShellSpec,)
42-
)
40+
Split_input_spec = specs.SpecInfo(name="Input", fields=input_fields, bases=(specs.ShellSpec,))
4341

4442
output_fields = [
4543
(

pydra/tasks/fsl/utils/tests/test_run_split.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
from ..split import Split
44

55

6-
@pytest.mark.xfail(
7-
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8-
)
6+
@pytest.mark.xfail("FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError)
97
@pytest.mark.parametrize(
108
"inputs, outputs",
119
[
@@ -45,9 +43,7 @@ def test_Split(test_data, inputs, outputs):
4543
except:
4644
pass
4745
task = Split(**inputs)
48-
assert set(task.generated_output_names) == set(
49-
["return_code", "stdout", "stderr"] + outputs
50-
)
46+
assert set(task.generated_output_names) == set(["return_code", "stdout", "stderr"] + outputs)
5147
res = task()
5248
print("RESULT: ", res)
5349
for out_nm in outputs:

pydra/tasks/fsl/utils/tests/test_spec_split.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@ def test_Split(test_data, inputs, outputs):
4242
except:
4343
pass
4444
task = Split(**inputs)
45-
assert set(task.generated_output_names) == set(
46-
["return_code", "stdout", "stderr"] + outputs
47-
)
45+
assert set(task.generated_output_names) == set(["return_code", "stdout", "stderr"] + outputs)

specs/callables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ def MELODIC_output(field, inputs):
403403

404404
# return sorted(glob(fname_template))
405405

406+
406407
def Split_output(inputs):
407408
import os, glob
408409

0 commit comments

Comments
 (0)