mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2025-08-15 06:21:07 +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 import Github
|
||||||
from github.Auth import AppAuth
|
from github.Auth import AppAuth
|
||||||
|
|
||||||
from ryujinx_mako._const import APP_ID, PRIVATE_KEY, INSTALLATION_ID, SCRIPT_NAME, \
|
from ryujinx_mako._const import (
|
||||||
IS_DRY_RUN
|
APP_ID,
|
||||||
|
PRIVATE_KEY,
|
||||||
|
INSTALLATION_ID,
|
||||||
|
SCRIPT_NAME,
|
||||||
|
IS_DRY_RUN,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Subcommand(ABC):
|
class Subcommand(ABC):
|
||||||
|
@ -49,9 +54,11 @@ class Subcommand(ABC):
|
||||||
|
|
||||||
|
|
||||||
class GithubSubcommand(Subcommand, ABC):
|
class GithubSubcommand(Subcommand, ABC):
|
||||||
_github = Github(
|
_github = (
|
||||||
auth=AppAuth(APP_ID, PRIVATE_KEY).get_installation_auth(INSTALLATION_ID)
|
Github(auth=AppAuth(APP_ID, PRIVATE_KEY).get_installation_auth(INSTALLATION_ID))
|
||||||
) if not IS_DRY_RUN else None
|
if not IS_DRY_RUN
|
||||||
|
else None
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def github(self):
|
def github(self):
|
||||||
|
|
|
@ -38,7 +38,7 @@ class ExecRyujinxTasks(GithubSubcommand):
|
||||||
type=str,
|
type=str,
|
||||||
required=True,
|
required=True,
|
||||||
help="the path to the file on the runner that contains the full "
|
help="the path to the file on the runner that contains the full "
|
||||||
"event webhook payload",
|
"event webhook payload",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-w",
|
"-w",
|
||||||
|
@ -46,7 +46,7 @@ class ExecRyujinxTasks(GithubSubcommand):
|
||||||
type=Path,
|
type=Path,
|
||||||
required=False,
|
required=False,
|
||||||
default=Path(os.getcwd()),
|
default=Path(os.getcwd()),
|
||||||
help="the working directory on the runner"
|
help="the working directory on the runner",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"repo_path",
|
"repo_path",
|
||||||
|
|
|
@ -27,9 +27,7 @@ class UpdateReviewers(GithubSubcommand):
|
||||||
help="full name of the GitHub repository (format: OWNER/REPO)",
|
help="full name of the GitHub repository (format: OWNER/REPO)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"pr_number",
|
"pr_number", type=int, help="the number of the pull request to check"
|
||||||
type=int,
|
|
||||||
help="the number of the pull request to check"
|
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"config_path",
|
"config_path",
|
||||||
|
|
Loading…
Reference in a new issue