File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ extend-select = [
9494]
9595ignore = [
9696 " S311" , # We are not using random for cryptographic purposes
97+ " B905" ,
9798]
9899
99100[tool .ruff .lint .flake8-quotes ]
You can’t perform that action at this time.
0 commit comments