diff --git a/nibabel/streamlines/tractogram_file.py b/nibabel/streamlines/tractogram_file.py index 557261e9a..65add3e2f 100644 --- a/nibabel/streamlines/tractogram_file.py +++ b/nibabel/streamlines/tractogram_file.py @@ -74,7 +74,7 @@ def is_correct_format(cls, fileobj): Returns True if `fileobj` is in the right streamlines file format, otherwise returns False. """ - raise NotImplementedError() + raise NotImplementedError @classmethod def create_empty_header(cls): @@ -101,7 +101,7 @@ def load(cls, fileobj, lazy_load=True): Returns an object containing tractogram data and header information. """ - raise NotImplementedError() + raise NotImplementedError @abstractmethod def save(self, fileobj): @@ -113,4 +113,4 @@ def save(self, fileobj): If string, a filename; otherwise an open file-like object opened and ready to write. """ - raise NotImplementedError() + raise NotImplementedError diff --git a/nibabel/tests/test_volumeutils.py b/nibabel/tests/test_volumeutils.py index 07ca9a6ba..9d321f07e 100644 --- a/nibabel/tests/test_volumeutils.py +++ b/nibabel/tests/test_volumeutils.py @@ -989,7 +989,7 @@ def test_seek_tell_logic(): class BabyBio(BytesIO): def seek(self, *args): - raise OSError() + raise OSError bio = BabyBio() # Fresh fileobj, position 0, can't seek - error diff --git a/pyproject.toml b/pyproject.toml index 2840119c4..55e96d992 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ select = [ "F", "I", "Q", + "RSE", "UP", ] ignore = [