ruff rules
This commit is contained in:
+2
-2
@@ -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}"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user