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 Oct 6, 2024
1 parent e6bc217 commit f7fef39
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 @@ -3403,7 +3403,7 @@ def _gen_filename(self, name):
+ ".xfm"
)
else:
raise NotImplemented
raise NotImplementedError

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

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3406

Added line #L3406 was not covered by tests

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

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

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3505

Added line #L3505 was not covered by tests

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

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

View check run for this annotation

Codecov / codecov/patch

nipype/interfaces/minc/minc.py#L3576

Added line #L3576 was not covered by tests

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

0 comments on commit f7fef39

Please sign in to comment.