mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2025-08-14 23:11:08 +00:00
Apply black formatting
This commit is contained in:
parent
96f87d0f89
commit
aa4fe2746d
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue