Commit 3192641
[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 number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments