Skip to content

Commit

Permalink
MNT: Add Zenodo blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 14, 2020
1 parent faef7d0 commit 79f11d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/update_zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def decommify(name):
# These names should go last
CREATORS_LAST = ["Krzysztof J. Gorgolewski", "Satrajit Ghosh"]

# Contributors that have requested not to be cited (or bothered)
BLACKLIST = {"Jonathan R. Williford"}

if __name__ == "__main__":
git_root = Path(git.Repo(".", search_parent_directories=True).working_dir)
zenodo_file = git_root / ".zenodo.json"
Expand Down Expand Up @@ -44,7 +47,8 @@ def decommify(name):
)
match, score = matches[0]
if score <= 80:
print("No entry to sort:", committer)
if committer not in BLACKLIST:
print("No entry to sort:", committer)
continue
existing_creators.discard(match)
committers.append(match)
Expand Down

0 comments on commit 79f11d9

Please sign in to comment.