Skip to content

Commit

Permalink
sty: Apply UP031 to .maint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 13, 2024
1 parent 0244297 commit 05621c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .maint/paper_author_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _aslist(inlist):
aff_indexes = [
', '.join(
[
'%d' % (affiliations.index(a) + 1)
str(affiliations.index(a) + 1)
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
]
)
Expand All @@ -52,7 +52,7 @@ def _aslist(inlist):
file=sys.stderr,
)

print('Authors (%d):' % len(author_matches))
print(f'Authors ({len(author_matches)}):')
print(
'{}.'.format(
'; '.join(
Expand Down
4 changes: 2 additions & 2 deletions .maint/update_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _aslist(value):
aff_indexes = [
', '.join(
[
'%d' % (affiliations.index(a) + 1)
str(affiliations.index(a) + 1)
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
]
)
Expand All @@ -272,7 +272,7 @@ def _aslist(value):
file=sys.stderr,
)

print('Authors (%d):' % len(hits))
print(f'Authors ({len(hits)}):')
print(
'{}.'.format(
'; '.join(
Expand Down

0 comments on commit 05621c6

Please sign in to comment.