Skip to content

Commit b445375

Browse files
authored
Merge pull request #1359 from DimitriPapadopoulos/PLE
STY: Enforce ruff/Pylint rules, errors only (PLE)
2 parents bb6236f + 747338c commit b445375

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

nibabel/openers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(
6868
raise TypeError('Must define either fileobj or filename')
6969
# Cast because GzipFile.myfileobj has type io.FileIO while open returns ty.IO
7070
fileobj = self.myfileobj = ty.cast(io.FileIO, open(filename, modestr))
71-
return super().__init__(
71+
super().__init__(
7272
filename='',
7373
mode=modestr,
7474
compresslevel=compresslevel,

nibabel/tmpdirs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, suffix='', prefix=tempfile.template, dir=None):
5454
>>> os.path.exists(tmpdir)
5555
False
5656
"""
57-
return super().__init__(suffix, prefix, dir)
57+
super().__init__(suffix, prefix, dir)
5858

5959

6060
@contextmanager

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ select = [
119119
"B",
120120
"F",
121121
"I",
122+
"PLE",
122123
"Q",
123124
"UP",
124125
]

0 commit comments

Comments
 (0)