pyupgrade: Reformat with --py36-plus.
This includes mainly fixes of string literals using f-strings or .format(...), as well as unpacking of list comprehensions.
This commit is contained in:
parent
e27ac0ddbe
commit
9ce7c52a10
78 changed files with 356 additions and 389 deletions
|
@ -21,7 +21,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
|
|||
def commit_notice_destination(path: str, commit: str) -> Optional[Dict[str, str]]:
|
||||
repo = path.split("/")[-1]
|
||||
if repo not in ["evil-master-plan", "my-super-secret-repository"]:
|
||||
return dict(stream="commits", subject="%s" % (repo,))
|
||||
return dict(stream="commits", subject=f"{repo}")
|
||||
|
||||
# Return None for cases where you don't want a notice sent
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue