Skip to content

Commit 27c4cd4

Browse files
STY: Apply ruff/flake8-pie rule PIE790
PIE790 Unnecessary `pass` statement
1 parent e03ab6f commit 27c4cd4

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

nipype/interfaces/dipy/reconstruction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def _run_interface(self, runtime):
136136
)
137137
except:
138138
bias = 0.0
139-
pass
140139

141140
sigma = mean_std * (1 + bias)
142141

nipype/interfaces/mrtrix3/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def _format_arg(self, name, trait_spec, value):
103103
value = cpu_count()
104104
except:
105105
iflogger.warning("Number of threads could not be computed")
106-
pass
107106
return trait_spec.argstr % value
108107

109108
if name == "in_bvec":

nipype/pipeline/plugins/sge.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ def _qacct_verified_complete(taskid):
184184
except:
185185
sge_debug_print("NOTE: qacct call failed")
186186
time.sleep(5)
187-
pass
188187
return is_complete
189188

190189
def _parse_qstat_job_list(self, xml_job_list):
@@ -259,7 +258,6 @@ def _parse_qstat_job_list(self, xml_job_list):
259258
dictionary_job, self._task_dictionary[dictionary_job]
260259
)
261260
)
262-
pass
263261
if self._task_dictionary[dictionary_job].is_initializing():
264262
is_completed = self._qacct_verified_complete(dictionary_job)
265263
if is_completed:
@@ -271,7 +269,6 @@ def _parse_qstat_job_list(self, xml_job_list):
271269
dictionary_job, self._task_dictionary[dictionary_job]
272270
)
273271
)
274-
pass
275272

276273
def _run_qstat(self, reason_for_qstat, force_instant=True):
277274
"""request all job information for the current user in xmlformat.
@@ -320,7 +317,6 @@ def _run_qstat(self, reason_for_qstat, force_instant=True):
320317
)
321318
sge_debug_print(exception_message)
322319
time.sleep(5)
323-
pass
324320

325321
def print_dictionary(self):
326322
"""For debugging"""

nipype/utils/draw_gantt_chart.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"Pandas not found; in order for full functionality of this module "
2121
"install the pandas package"
2222
)
23-
pass
2423

2524

2625
def create_event_dict(start_time, nodes_list):

0 commit comments

Comments
 (0)