mirror of
https://github.com/Ryujinx/Ryujinx-Mako.git
synced 2025-08-17 07:41:08 +00:00
Apply black formatting
This commit is contained in:
parent
a54bc3c4b6
commit
697651bab6
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Available with Python 3.11
|
# Available with Python 3.11
|
||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
|
|
|
@ -15,8 +15,12 @@ class SetupGit(GithubSubcommand):
|
||||||
return f"Set git identity to {NAME}"
|
return f"Set git identity to {NAME}"
|
||||||
|
|
||||||
def __init__(self, parser: ArgumentParser):
|
def __init__(self, parser: ArgumentParser):
|
||||||
parser.add_argument("-l", "--local", action="store_true",
|
parser.add_argument(
|
||||||
help="Set git identity only for the current repository.")
|
"-l",
|
||||||
|
"--local",
|
||||||
|
action="store_true",
|
||||||
|
help="Set git identity only for the current repository.",
|
||||||
|
)
|
||||||
super().__init__(parser)
|
super().__init__(parser)
|
||||||
|
|
||||||
def run(self, args: Namespace):
|
def run(self, args: Namespace):
|
||||||
|
@ -38,6 +42,8 @@ class SetupGit(GithubSubcommand):
|
||||||
self.logger.info(f"Setting git {option} to: {value}")
|
self.logger.info(f"Setting git {option} to: {value}")
|
||||||
command = base_command.copy()
|
command = base_command.copy()
|
||||||
command.extend([option, value])
|
command.extend([option, value])
|
||||||
process = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
process = subprocess.run(
|
||||||
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
||||||
|
)
|
||||||
process.check_returncode()
|
process.check_returncode()
|
||||||
self.logger.info("Success!")
|
self.logger.info("Success!")
|
||||||
|
|
Loading…
Reference in a new issue