Skip to content

Commit 03cb3ed

Browse files
STY: Apply ruff/flake8-pie rule PIE810
PIE810 Call `endswith` once with a `tuple`
1 parent 73ed096 commit 03cb3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/interfaces/tests/test_bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def test_DerivativesDataSink_build_path(
367367
for out, exp in zip(output, expectation):
368368
assert Path(out).relative_to(base_directory) == Path(base) / exp
369369
# Regression - some images were given nan scale factors
370-
if out.endswith('.nii') or out.endswith('.nii.gz'):
370+
if out.endswith(('.nii', '.nii.gz')):
371371
img = nb.load(out)
372372
if isinstance(img, nb.Nifti1Image):
373373
with nb.openers.ImageOpener(out) as fobj:

0 commit comments

Comments
 (0)