@@ -20,15 +20,15 @@ def _aslist(inlist):
20
20
devs = json .loads (Path (".maint/developers.json" ).read_text ())
21
21
contribs = json .loads (Path (".maint/contributors.json" ).read_text ())
22
22
23
- author_matches , unmatched = sort_contributors (
23
+ hits , misses = sort_contributors (
24
24
devs + contribs ,
25
25
get_git_lines (),
26
26
exclude = json .loads (Path (".maint/former.json" ).read_text ()),
27
27
last = AUTHORS_LAST ,
28
28
)
29
29
# Remove position
30
30
affiliations = []
31
- for item in author_matches :
31
+ for item in hits :
32
32
del item ["position" ]
33
33
for a in _aslist (item .get ("affiliation" , "Unaffiliated" )):
34
34
if a not in affiliations :
@@ -41,22 +41,23 @@ def _aslist(inlist):
41
41
for a in _aslist (author .get ("affiliation" , "Unaffiliated" ))
42
42
]
43
43
)
44
- for author in author_matches
44
+ for author in hits
45
45
]
46
46
47
- print (
48
- "Some people made commits, but are missing in .maint/ "
49
- "files: %s." % ", " .join (unmatched ),
50
- file = sys .stderr ,
51
- )
47
+ if misses :
48
+ print (
49
+ "Some people made commits, but are missing in .maint/ "
50
+ f"files: { ', ' .join (misses )} " ,
51
+ file = sys .stderr ,
52
+ )
52
53
53
- print ("Authors (%d):" % len (author_matches ))
54
+ print ("Authors (%d):" % len (hits ))
54
55
print (
55
56
"%s."
56
57
% "; " .join (
57
58
[
58
59
"%s \\ :sup:`%s`\\ " % (i ["name" ], idx )
59
- for i , idx in zip (author_matches , aff_indexes )
60
+ for i , idx in zip (hits , aff_indexes )
60
61
]
61
62
)
62
63
)
0 commit comments