Skip to content

Commit

Permalink
black format.
Browse files Browse the repository at this point in the history
  • Loading branch information
laixintao committed Oct 31, 2023
1 parent b66414d commit 549254f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions iredis/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ def repl(client, session, start_time):
try:
command = session.prompt(
prompt_message(client),
bottom_toolbar=BottomToolbar(command_holder).render
if config.bottom_bar
else None,
bottom_toolbar=(
BottomToolbar(command_holder).render if config.bottom_bar else None
),
input_processors=[
UpdateBottomProcessor(command_holder, session),
PasswordProcessor(),
Expand Down Expand Up @@ -274,7 +274,12 @@ def repl(client, session, start_time):
@click.option("--rainbow/--no-rainbow", default=None, is_flag=True, help=RAINBOW)
@click.option("--shell/--no-shell", default=None, is_flag=True, help=SHELL)
@click.option("--pager/--no-pager", default=None, is_flag=True, help=PAGER_HELP)
@click.option("--greetings/--no-greetings", default=None, is_flag=True, help="Enable or disable greeting messages")
@click.option(
"--greetings/--no-greetings",
default=None,
is_flag=True,
help="Enable or disable greeting messages",
)
@click.option(
"--verify-ssl",
default=None,
Expand Down Expand Up @@ -376,9 +381,11 @@ def resolve_dsn(dsn):
dsn_uri = config.alias_dsn[dsn]
except KeyError:
click.secho(
"Could not find the specified DSN in the config file. "
'Please check the "[alias_dsn]" section in your '
"iredisrc.",
(
"Could not find the specified DSN in the config file. "
'Please check the "[alias_dsn]" section in your '
"iredisrc."
),
err=True,
fg="red",
)
Expand Down

0 comments on commit 549254f

Please sign in to comment.