merge: Format with ruff

This commit is contained in:
bbhtt
2024-11-07 13:52:56 +05:30
parent db3e106060
commit 1c29aa60d5
+5 -2
View File
@@ -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(