Skip to content

Commit 5ab5942

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent eadfb18 commit 5ab5942

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/fastapi_cli/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def _get_module_tree(module_paths: List[Path]) -> Tree:
8888
for sub_path in module_paths[1:]:
8989
if sys.platform == "win32":
9090
sub_name = (
91-
f"Python {sub_path.name}" if sub_path.is_file() else f"Folder {sub_path.name}"
91+
f"Python {sub_path.name}"
92+
if sub_path.is_file()
93+
else f"Folder {sub_path.name}"
9294
)
9395
else:
9496
sub_name = (
@@ -124,7 +126,7 @@ def _run(
124126
if sys.platform == "win32":
125127
title = f"Starting {server_type} server"
126128
else:
127-
title = f"Starting {server_type} server 🚀"
129+
title = f"Starting {server_type} server 🚀"
128130

129131
toolkit.print_title(title, tag="FastAPI")
130132
toolkit.print_line()

src/fastapi_cli/logging.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ def setup_logging(
99
terminal_width: Union[int, None] = None, level: int = logging.INFO
1010
) -> None:
1111
logger = logging.getLogger("fastapi_cli")
12-
console = Console(width=terminal_width or 80, emoji=False, legacy_windows=True, force_terminal=True)
12+
console = Console(
13+
width=terminal_width or 80,
14+
emoji=False,
15+
legacy_windows=True,
16+
force_terminal=True,
17+
)
1318
rich_handler = RichHandler(
1419
show_time=False,
1520
rich_tracebacks=True,

0 commit comments

Comments
 (0)