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 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):

View file

@ -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",

View file

@ -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",