Skip to content

Commit 16a8b29

Browse files
committed
sty: Address ruff complaints
1 parent beae8e6 commit 16a8b29

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.maint/update_authors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,8 @@ def _aslist(value):
259259

260260
aff_indexes = [
261261
', '.join(
262-
[
263-
'%d' % (affiliations.index(a) + 1)
264-
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
265-
]
262+
str(affiliations.index(a) + 1)
263+
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
266264
)
267265
for author in authors
268266
]

fmriprep/workflows/bold/resampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ def init_wb_surf_surf_wf(
806806
]) # fmt:skip
807807

808808
# Fetch template metadata
809-
template_meta = tf.get_metadata(template.split(':')[0])
810-
template_refs = ['@{}'.format(template.split(':')[0].lower())]
809+
template_meta = tf.get_metadata(template.split(':', maxsplit=1)[0])
810+
template_refs = ['@{}'.format(template.split(':', maxsplit=1)[0].lower())]
811811
if template_meta.get('RRID', None):
812812
template_refs += [f'RRID:{template_meta["RRID"]}']
813813

wrapper/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ extend-select = [
9494
]
9595
ignore = [
9696
"S311", # We are not using random for cryptographic purposes
97+
"B905",
9798
]
9899

99100
[tool.ruff.lint.flake8-quotes]

0 commit comments

Comments
 (0)