Skip to content

Commit

Permalink
STY: Apply ruff/Pyflakes rule F901
Browse files Browse the repository at this point in the history
F901 `raise NotImplemented` should be `raise NotImplementedError`
  • Loading branch information
DimitriPapadopoulos committed Sep 22, 2024
1 parent e7fffd7 commit 16453da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nipype/interfaces/minc/minc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,7 @@ def _gen_filename(self, name):
+ ".xfm"
)
else:
raise NotImplemented
raise NotImplementedError

Check warning on line 3405 in nipype/interfaces/minc/minc.py

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3405

Added line #L3405 was not covered by tests

def _list_outputs(self):
outputs = self.output_spec().get()
Expand Down Expand Up @@ -3501,7 +3501,7 @@ def _gen_filename(self, name):
+ ".xfm"
)
else:
raise NotImplemented
raise NotImplementedError

Check warning on line 3504 in nipype/interfaces/minc/minc.py

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3504

Added line #L3504 was not covered by tests

def _gen_outfilename(self):
return self._gen_filename("output_file")
Expand Down Expand Up @@ -3572,7 +3572,7 @@ def _gen_filename(self, name):
+ ".xfm"
)
else:
raise NotImplemented
raise NotImplementedError

Check warning on line 3575 in nipype/interfaces/minc/minc.py

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3575

Added line #L3575 was not covered by tests

def _gen_outfilename(self):
return self._gen_filename("output_file")
Expand Down

0 comments on commit 16453da

Please sign in to comment.