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
```
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:
@@ -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}"
},
+2 -1
View File
@@ -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]