Skip to content

Commit 3980037

Browse files
STY: Apply ruff/flake8-pie rule PIE810
PIE810 Call `endswith` once with a `tuple`
1 parent 56b8c93 commit 3980037

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nipype/interfaces/dcm2nii.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,7 @@ def _parse_files(self, filenames):
471471
for filename in filenames:
472472
# search for relevant files, and sort accordingly
473473
for fl in search_files(filename, outtypes, self.inputs.crop):
474-
if (
475-
fl.endswith((".nii", ".gz", ".nrrd", ".nhdr"))
476-
):
474+
if fl.endswith((".nii", ".gz", ".nrrd", ".nhdr")):
477475
outfiles.append(fl)
478476
elif fl.endswith(".bval"):
479477
bvals.append(fl)

0 commit comments

Comments
 (0)