Add YAPF style + ignore, and format tracked Python files

This commit is contained in:
2025-12-29 18:42:02 -08:00
parent c019c00aed
commit 507946a3e4
108 changed files with 11664 additions and 6494 deletions

View File

@@ -54,7 +54,8 @@ class FileServerHandler(SimpleHTTPRequestHandler):
self.send_header("Content-type", content_type)
self.send_header("Content-Length", str(len(file_content)))
self.send_header(
"Content-Disposition", f'attachment; filename="{full_path.name}"'
"Content-Disposition",
f'attachment; filename="{full_path.name}"'
)
self.end_headers()
self.wfile.write(file_content)
@@ -118,7 +119,10 @@ def start_file_server(port: int = 8001) -> Optional[str]:
_file_server = HTTPServer(server_address, FileServerHandler)
# Start in daemon thread
_server_thread = threading.Thread(target=_file_server.serve_forever, daemon=True)
_server_thread = threading.Thread(
target=_file_server.serve_forever,
daemon=True
)
_server_thread.start()
logger.info(f"File server started on port {port}")