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