1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
alexAubin 2024-05-01 20:58:24 +00:00 committed by OniriCorpe
parent 8ca1310130
commit d61ca0d43b

View file

@ -53,13 +53,11 @@ STRATEGIES = [
@cache
def get_github() -> (
tuple[
Optional[tuple[str, str]],
Optional[github.Github],
Optional[github.InputGitAuthor],
]
):
def get_github() -> tuple[
Optional[tuple[str, str]],
Optional[github.Github],
Optional[github.InputGitAuthor],
]:
try:
github_login = (
(REPO_APPS_ROOT / ".github_login")
@ -454,8 +452,8 @@ class AppAutoUpdater:
api: Union[GithubAPI, GitlabAPI, GiteaForgejoAPI]
if remote_type == "github":
assert (
upstream and upstream.startswith("https://github.com/")
assert upstream and upstream.startswith(
"https://github.com/"
), f"When using strategy {strategy}, having a defined upstream code repo on github.com is required"
api = GithubAPI(upstream, auth=get_github()[0])
if remote_type == "gitlab":