From aa4fe2746d9e2baca2069a60324c8805a3988f11 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:11:08 +0200 Subject: [PATCH] Apply black formatting --- ryujinx_mako/commands/_subcommand.py | 17 ++++++++++++----- ryujinx_mako/commands/exec_ryujinx_tasks.py | 4 ++-- ryujinx_mako/commands/update_reviewers.py | 4 +--- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ryujinx_mako/commands/_subcommand.py b/ryujinx_mako/commands/_subcommand.py index ddcb4c5..b33cf0a 100644 --- a/ryujinx_mako/commands/_subcommand.py +++ b/ryujinx_mako/commands/_subcommand.py @@ -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): diff --git a/ryujinx_mako/commands/exec_ryujinx_tasks.py b/ryujinx_mako/commands/exec_ryujinx_tasks.py index d9f54d6..44124d8 100644 --- a/ryujinx_mako/commands/exec_ryujinx_tasks.py +++ b/ryujinx_mako/commands/exec_ryujinx_tasks.py @@ -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", diff --git a/ryujinx_mako/commands/update_reviewers.py b/ryujinx_mako/commands/update_reviewers.py index cf489a1..18bc508 100644 --- a/ryujinx_mako/commands/update_reviewers.py +++ b/ryujinx_mako/commands/update_reviewers.py @@ -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",