🎨 Format Python code with Black
This commit is contained in:
parent
8ca1310130
commit
d61ca0d43b
1 changed files with 7 additions and 9 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue