From 007d823c0a396443bcf48a5acd08da0ba00defec Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Tue, 21 Jul 2026 08:49:42 -0500 Subject: [PATCH] ruff rules --- docs/index.md | 4 ++-- .../references/tasks-json-configuration.md | 2 +- ruff.toml | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 54aa1fc..f47737d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,10 +22,10 @@ Install dependencies first: uv sync ``` -Run the app locally with the static docs rebuilt first: +Run the app locally with the static docs rebuilt first, using [Uvicorn factory mode](https://www.uvicorn.org/settings/#application): ```bash -uv run zensical build && uv run uvicorn personal_mcp.main:app --host 127.0.0.1 --port 8765 +uv run zensical build && uv run uvicorn personal_mcp.main:create_app --factory --host 127.0.0.1 --port 8765 ``` Build and run the Docker image with the same exposed port: diff --git a/docs/skills/vscode-configuration/references/tasks-json-configuration.md b/docs/skills/vscode-configuration/references/tasks-json-configuration.md index 67acb28..130e2f8 100644 --- a/docs/skills/vscode-configuration/references/tasks-json-configuration.md +++ b/docs/skills/vscode-configuration/references/tasks-json-configuration.md @@ -32,7 +32,7 @@ Use [`.vscode/tasks.json`](https://code.visualstudio.com/docs/editor/tasks) to d "label": "App: Run", "type": "shell", "command": "uv", - "args": ["run", "uvicorn", "personal_mcp.main:app", "--host", "127.0.0.1", "--port", "8000", "--reload"], + "args": ["run", "uvicorn", "personal_mcp.main:create_app", "--factory", "--host", "127.0.0.1", "--port", "8000", "--reload"], "options": { "cwd": "${workspaceFolder}" }, diff --git a/ruff.toml b/ruff.toml index 4b97024..d4da1e5 100644 --- a/ruff.toml +++ b/ruff.toml @@ -49,7 +49,8 @@ ignore = [ "*.ipynb" = [ "F401", # unused imports "F841", # unused local variable - "F821", # undefined name in exploratory notebook cells + "F821", # undefined name in exploratory notebook cells, + "LOG015", # root logger calls ] [lint.isort]