mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
merge: Format with ruff
This commit is contained in:
@@ -17,7 +17,7 @@ from gql import Client, gql
|
||||
from gql.transport.requests import RequestsHTTPTransport
|
||||
|
||||
gi.require_version("Json", "1.0")
|
||||
from gi.repository import Json
|
||||
from gi.repository import Json # noqa: E402
|
||||
|
||||
|
||||
def set_protected_branch(token, repo, branch):
|
||||
@@ -179,7 +179,10 @@ def main():
|
||||
print("Creating new repo on Flathub")
|
||||
repo = org.create_repo(appid)
|
||||
time.sleep(5)
|
||||
repo.edit(homepage=f"https://flathub.org/apps/details/{appid}", delete_branch_on_merge=True)
|
||||
repo.edit(
|
||||
homepage=f"https://flathub.org/apps/details/{appid}",
|
||||
delete_branch_on_merge=True,
|
||||
)
|
||||
|
||||
print("Adding flathub remote")
|
||||
clone.remotes.create(
|
||||
|
||||
Reference in New Issue
Block a user