Skip to content

Commit 5f280da

Browse files
committed
sty: run black on affected files
1 parent bed65aa commit 5f280da

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

nipype/interfaces/base/support.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ def __exit__(self, exc_type, exc_value, exc_tb):
113113
if hasattr(self._runtime, "cmdline"):
114114
retcode = self._runtime.returncode
115115
if retcode not in self._runtime.success_codes:
116-
self._runtime.traceback = f"RuntimeError: subprocess exited with code {retcode}."
116+
self._runtime.traceback = (
117+
f"RuntimeError: subprocess exited with code {retcode}."
118+
)
117119

118120
@property
119121
def runtime(self):

nipype/pipeline/plugins/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def run(self, graph, config, updatehash=False):
147147
"Progress: %d jobs, %d/%d/%d "
148148
"(done/running/ready), %d/%d "
149149
"(pending_tasks/waiting).",
150-
*progress_stats
150+
*progress_stats,
151151
)
152152
old_progress_stats = progress_stats
153153
toappend = []
@@ -204,7 +204,10 @@ def run(self, graph, config, updatehash=False):
204204
error = RuntimeError(error)
205205

206206
if len(errors) > 1:
207-
error, cause = RuntimeError(f"{len(errors)} raised. Re-raising first."), error
207+
error, cause = (
208+
RuntimeError(f"{len(errors)} raised. Re-raising first."),
209+
error,
210+
)
208211

209212
raise error from cause
210213

nipype/pipeline/plugins/linear.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def run(self, graph, config, updatehash=False):
7474
error = RuntimeError(error)
7575

7676
if len(errors) > 1:
77-
error, cause = RuntimeError(f"{len(errors)} raised. Re-raising first."), error
77+
error, cause = (
78+
RuntimeError(f"{len(errors)} raised. Re-raising first."),
79+
error,
80+
)
7881

7982
raise error from cause

0 commit comments

Comments
 (0)