Apply black formatting

This commit is contained in:
TSR Berry 2023-10-10 17:11:08 +02:00
parent 96f87d0f89
commit aa4fe2746d
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2
3 changed files with 15 additions and 10 deletions

View file

@ -6,8 +6,13 @@ from typing import Any
from github import Github
from github.Auth import AppAuth
from ryujinx_mako._const import APP_ID, PRIVATE_KEY, INSTALLATION_ID, SCRIPT_NAME, \
IS_DRY_RUN
from ryujinx_mako._const import (
APP_ID,
PRIVATE_KEY,
INSTALLATION_ID,
SCRIPT_NAME,
IS_DRY_RUN,
)
class Subcommand(ABC):
@ -49,9 +54,11 @@ class Subcommand(ABC):
class GithubSubcommand(Subcommand, ABC):
_github = Github(
auth=AppAuth(APP_ID, PRIVATE_KEY).get_installation_auth(INSTALLATION_ID)
) if not IS_DRY_RUN else None
_github = (
Github(auth=AppAuth(APP_ID, PRIVATE_KEY).get_installation_auth(INSTALLATION_ID))
if not IS_DRY_RUN
else None
)
@property
def github(self):

View file

@ -38,7 +38,7 @@ class ExecRyujinxTasks(GithubSubcommand):
type=str,
required=True,
help="the path to the file on the runner that contains the full "
"event webhook payload",
"event webhook payload",
)
parser.add_argument(
"-w",
@ -46,7 +46,7 @@ class ExecRyujinxTasks(GithubSubcommand):
type=Path,
required=False,
default=Path(os.getcwd()),
help="the working directory on the runner"
help="the working directory on the runner",
)
parser.add_argument(
"repo_path",

View file

@ -27,9 +27,7 @@ class UpdateReviewers(GithubSubcommand):
help="full name of the GitHub repository (format: OWNER/REPO)",
)
parser.add_argument(
"pr_number",
type=int,
help="the number of the pull request to check"
"pr_number", type=int, help="the number of the pull request to check"
)
parser.add_argument(
"config_path",