ruff rules

This commit is contained in:
John Lancaster
2026-07-21 08:52:32 -05:00
parent 27f783fc90
commit 007d823c0a
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -22,10 +22,10 @@ Install dependencies first:
uv sync 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 ```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: Build and run the Docker image with the same exposed port:
@@ -32,7 +32,7 @@ Use [`.vscode/tasks.json`](https://code.visualstudio.com/docs/editor/tasks) to d
"label": "App: Run", "label": "App: Run",
"type": "shell", "type": "shell",
"command": "uv", "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": { "options": {
"cwd": "${workspaceFolder}" "cwd": "${workspaceFolder}"
}, },
+2 -1
View File
@@ -49,7 +49,8 @@ ignore = [
"*.ipynb" = [ "*.ipynb" = [
"F401", # unused imports "F401", # unused imports
"F841", # unused local variable "F841", # unused local variable
"F821", # undefined name in exploratory notebook cells "F821", # undefined name in exploratory notebook cells,
"LOG015", # root logger calls
] ]
[lint.isort] [lint.isort]