Ruff format

This commit is contained in:
2026-02-10 20:56:06 +00:00
parent 0e12e3a531
commit f483cf978c
2 changed files with 14 additions and 2 deletions
+12 -1
View File
@@ -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,
)
+2 -1
View File
@@ -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})",
)