Skip to content

Commit

Permalink
style: ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Sep 9, 2024
1 parent 7312c72 commit c63a0ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ruyi/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"__main__.py",
)


def is_called_as_ruyi(argv0: str) -> bool:
return os.path.basename(argv0).lower() in ALLOWED_RUYI_ENTRYPOINT_NAMES

Expand Down
6 changes: 5 additions & 1 deletion ruyi/log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def log_time_formatter(x: datetime.datetime) -> Text:


STDOUT_CONSOLE = Console(file=sys.stdout, highlight=False, soft_wrap=True)
DEBUG_CONSOLE = Console(file=sys.stderr, log_time_format=log_time_formatter, soft_wrap=True)
DEBUG_CONSOLE = Console(
file=sys.stderr,
log_time_format=log_time_formatter,
soft_wrap=True,
)
LOG_CONSOLE = Console(file=sys.stderr, highlight=False, soft_wrap=True)
PORCELAIN_SINK = PorcelainOutput(sys.stderr.buffer)

Expand Down

0 comments on commit c63a0ac

Please sign in to comment.