From f483cf978c08caeb9bd2d88b097d55ea77382300 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 10 Feb 2026 20:56:06 +0000 Subject: [PATCH] Ruff format --- fastapi_vue_setup.py | 13 ++++++++++++- template/scripts/devserver.py | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/fastapi_vue_setup.py b/fastapi_vue_setup.py index 9e84b94..826898c 100644 --- a/fastapi_vue_setup.py +++ b/fastapi_vue_setup.py @@ -50,7 +50,18 @@ def ruff_format_content(content: str, target_path: Path) -> str: temp_file.write_text(content, "UTF-8", newline="\n") # Sort imports first subprocess.run( - ["uv", "run", "--with", "ruff", "ruff", "check", "--select", "I", "--fix", str(temp_file)], + [ + "uv", + "run", + "--with", + "ruff", + "ruff", + "check", + "--select", + "I", + "--fix", + str(temp_file), + ], cwd=target_path.parent, capture_output=True, ) diff --git a/template/scripts/devserver.py b/template/scripts/devserver.py index 7e7c943..7894498 100755 --- a/template/scripts/devserver.py +++ b/template/scripts/devserver.py @@ -56,7 +56,8 @@ def main(): epilog=HELP_EPILOG, ) parser.add_argument( - "-l", "--listen", + "-l", + "--listen", metavar="host:port", help=f"Vite (default: localhost:{DEFAULT_VITE_PORT})", )