Skip to content

Commit 3192641

Browse files
[agentserver] demo: add pyrightconfig.json so IDE resolves agentserver imports
The demo dir lives under the invocations package which has a pyrightconfig.json that excludes samples/** but still applies its rules to opened files. When the IDE opens app.py / agent.py, it couldn't find the editable-installed agentserver packages without an explicit venvPath / venv setting. Adding a demo-local pyrightconfig.json that: * points venv at the repo's .venv (via the relative path) * suppresses reportMissingImports / reportAttributeAccessIssue (the in-tree editable install is enough; the imports work; we don't need warnings telling us otherwise on a demo) * keeps the meaningful checks (Optional access, argument type, general type issues, return type) Verified: pyright runs clean from the demo dir with this config (0 errors, 1 informational warning on .output Optional access). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fda98a0 commit 3192641

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • sdk/agentserver/azure-ai-agentserver-invocations/samples/durable-agent-demo
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"include": [
3+
"src"
4+
],
5+
"venvPath": "../../../../..",
6+
"venv": ".venv",
7+
"pythonVersion": "3.12",
8+
"reportMissingImports": "none",
9+
"reportAttributeAccessIssue": "none",
10+
"reportOptionalMemberAccess": "warning",
11+
"reportArgumentType": "warning",
12+
"reportGeneralTypeIssues": "warning",
13+
"reportReturnType": "warning"
14+
}

0 commit comments

Comments
 (0)