format: ruff format

This commit is contained in:
Daulet Amirkhanov 2025-09-25 22:04:41 +01:00
parent 921c4481f0
commit 80da553185

View file

@ -361,7 +361,7 @@ def start_ui(
Returns: Returns:
subprocess.Popen object representing the running frontend server, or None if failed subprocess.Popen object representing the running frontend server, or None if failed
Note: If backend and/or MCP server are started, they run in separate processes Note: If backend and/or MCP server are started, they run in separate processes
that will be cleaned up when the frontend process is terminated. that will be cleaned up when the frontend process is terminated.
Example: Example:
@ -391,12 +391,16 @@ def start_ui(
try: try:
mcp_process = subprocess.Popen( mcp_process = subprocess.Popen(
[ [
"docker", "run", "docker",
"-p", "8001:8000", "run",
"-p",
"8001:8000",
"--rm", "--rm",
"--env-file", env_file, "--env-file",
"-e", "TRANSPORT_MODE=sse", env_file,
"cognee/cognee-mcp:daulet-dev" "-e",
"TRANSPORT_MODE=sse",
"cognee/cognee-mcp:daulet-dev",
], ],
preexec_fn=os.setsid if hasattr(os, "setsid") else None, preexec_fn=os.setsid if hasattr(os, "setsid") else None,
) )