fixed pyservectl linter errors and formatting

This commit is contained in:
Илья Глазунов
2025-12-04 03:17:21 +03:00
parent 7662a7924a
commit 3b59994fc9
15 changed files with 87 additions and 62 deletions
+6 -5
View File
@@ -7,6 +7,7 @@ import signal
import sys
import time
from pathlib import Path
from typing import Any
import click
@@ -54,16 +55,16 @@ import click
)
@click.pass_obj
def up_cmd(
ctx,
services: tuple,
ctx: Any,
services: tuple[str, ...],
detach: bool,
build: bool,
force_recreate: bool,
scales: tuple,
scales: tuple[str, ...],
timeout: int,
wait: bool,
remove_orphans: bool,
):
) -> None:
"""
Start services defined in configuration.
@@ -147,7 +148,7 @@ def up_cmd(
else:
console.print("[bold]Starting PyServe...[/bold]")
def signal_handler(signum, frame):
def signal_handler(signum: int, frame: Any) -> None:
console.print("\n[yellow]Received shutdown signal...[/yellow]")
runner.stop()
sys.exit(0)