8000 STY: Apply ruff/flake8-pie rules (PIE) by DimitriPapadopoulos · Pull Request #3678 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

STY: Apply ruff/flake8-pie rules (PIE) #3678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
STY: Apply ruff/flake8-pie rule PIE790
PIE790 Unnecessary `pass` statement
  • Loading branch information
DimitriPapadopoulos committed Oct 5, 2024
commit 27c4cd47b754b8812f2c1a608f09cdfa97f52c25
1 change: 0 additions & 1 deletion nipype/interfaces/dipy/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def _run_interface(self, runtime):
)
except:
bias = 0.0
pass

sigma = mean_std * (1 + bias)

Expand Down
1 change: 0 additions & 1 deletion nipype/interfaces/mrtrix3/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def _format_arg(self, name, trait_spec, value):
value = cpu_count()
except:
iflogger.warning("Number of threads could not be computed")
pass
return trait_spec.argstr % value

if name == "in_bvec":
Expand Down
4 changes: 0 additions & 4 deletions nipype/pipeline/plugins/sge.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def _qacct_verified_complete(taskid):
except:
sge_debug_print("NOTE: qacct call failed")
time.sleep(5)
pass
return is_complete

def _parse_qstat_job_list(self, xml_job_list):
Expand Down Expand Up @@ -259,7 +258,6 @@ def _parse_qstat_job_list(self, xml_job_list):
dictionary_job, self._task_dictionary[dictionary_job]
)
)
pass
if self._task_dictionary[dictionary_job].is_initializing():
is_completed = self._qacct_verified_complete(dictionary_job)
if is_completed:
Expand All @@ -271,7 +269,6 @@ def _parse_qstat_job_list(self, xml_job_list):
dictionary_job, self._task_dictionary[dictionary_job]
)
)
pass

def _run_qstat(self, reason_for_qstat, force_instant=True):
"""request all job information for the current user in xmlformat.
Expand Down Expand Up @@ -320,7 +317,6 @@ def _run_qstat(self, reason_for_qstat, force_instant=True):
)
sge_debug_print(exception_message)
time.sleep(5)
pass

def print_dictionary(self):
"""For debugging"""
Expand Down
1 change: 0 additions & 1 deletion nipype/utils/draw_gantt_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"Pandas not found; in order for full functionality of this module "
"install the pandas package"
)
pass


def create_event_dict(start_time, nodes_list):
Expand Down
0