Skip to content

Commit c6fd007

Browse files
fix pyright config
1 parent c7e0ed0 commit c6fd007

File tree

10 files changed

+18
-23
lines changed

10 files changed

+18
-23
lines changed

python/packages/a2a/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ omit = [
5555
]
5656

5757
[tool.pyright]
58-
extend = "../../pyproject.toml"
59-
exclude = ['tests']
58+
extends = "../../pyproject.toml"
6059

6160
[tool.mypy]
6261
plugins = ['pydantic.mypy']

python/packages/azure-ai/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ omit = [
5454
]
5555

5656
[tool.pyright]
57-
extend = "../../pyproject.toml"
58-
exclude = ['tests']
57+
extends = "../../pyproject.toml"
5958

6059
[tool.mypy]
6160
plugins = ['pydantic.mypy']

python/packages/copilotstudio/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ omit = [
5555
]
5656

5757
[tool.pyright]
58-
extend = "../../pyproject.toml"
59-
exclude = ['tests']
58+
extends = "../../pyproject.toml"
59+
6060

6161
[tool.mypy]
6262
plugins = ['pydantic.mypy']

python/packages/core/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ omit = [
8383
extend = "../../pyproject.toml"
8484

8585
[tool.pyright]
86-
extend = "../../pyproject.toml"
87-
exclude = ['tests']
86+
extends = "../../pyproject.toml"
8887

8988
[tool.mypy]
9089
plugins = ['pydantic.mypy']

python/packages/devui/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ omit = [
6262
]
6363

6464
[tool.pyright]
65-
extend = "../../pyproject.toml"
66-
exclude = ['tests']
65+
extends = "../../pyproject.toml"
66+
6767

6868
[tool.mypy]
6969
plugins = ['pydantic.mypy']

python/packages/lab/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ omit = [
119119
]
120120

121121
[tool.pyright]
122-
extend = "../../pyproject.toml"
122+
extends = "../../pyproject.toml"
123123
exclude = ['gaia/tests', 'lightning/tests', 'tau2/tests', 'namespace', '**/samples']
124124

125125
[tool.mypy]

python/packages/mem0/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ omit = [
5555
]
5656

5757
[tool.pyright]
58-
extend = "../../pyproject.toml"
59-
exclude = ['tests']
58+
extends = "../../pyproject.toml"
59+
6060

6161
[tool.mypy]
6262
plugins = ['pydantic.mypy']

python/packages/purview/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ omit = [
5454
]
5555

5656
[tool.pyright]
57-
extend = "../../pyproject.toml"
58-
exclude = ['tests']
57+
extends = "../../pyproject.toml"
58+
5959

6060
[tool.mypy]
6161
plugins = ['pydantic.mypy']

python/packages/redis/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ omit = [
5757
]
5858

5959
[tool.pyright]
60-
extend = "../../pyproject.toml"
61-
exclude = ['tests']
60+
extends = "../../pyproject.toml"
6261

6362
[tool.mypy]
6463
plugins = ['pydantic.mypy']

python/pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ omit = [
177177
]
178178

179179
[tool.pyright]
180-
include = ["agent_framework", "samples"]
181-
exclude = ["**/tests/**", "docs", "**/.venv/**", "samples/semantic-kernel-migration/**", "samples/autogen-migration/**", "packages/devui/frontend/**"]
180+
include = ["agent_framework*"]
181+
exclude = ["**/tests/**", "docs", "**/.venv/**", "packages/devui/frontend/**"]
182182
typeCheckingMode = "strict"
183183
reportUnnecessaryIsInstance = false
184184
reportMissingTypeStubs = false
@@ -206,7 +206,6 @@ executor.type = "uv"
206206

207207
[tool.poe.tasks]
208208
markdown-code-lint = """uv run python check_md_code_blocks.py README.md ./packages/**/README.md ./samples/**/*.md --exclude cookiecutter-agent-framework-lab --exclude tau2 --exclude packages/devui/frontend"""
209-
samples-code-check = """pyright ./samples"""
210209
docs-install = "uv sync --all-packages --all-extras --dev -U --prerelease=if-necessary-or-explicit --group=docs"
211210
docs-clean = "rm -rf docs/build"
212211
docs-build = "uv run python ./docs/generate_docs.py"
@@ -230,8 +229,8 @@ build-meta = "python -m flit build"
230229
build = ["build-packages", "build-meta"]
231230
publish = "uv publish"
232231
# combined checks
233-
check = ["fmt", "lint", "pyright", "mypy", "test", "markdown-code-lint", "samples-code-check"]
234-
pre-commit-check = ["fmt", "lint", "pyright", "markdown-code-lint", "samples-code-check"]
232+
check = ["fmt", "lint", "pyright", "mypy", "test", "markdown-code-lint"]
233+
pre-commit-check = ["fmt", "lint", "pyright", "markdown-code-lint"]
235234

236235
[tool.poe.tasks.all-tests-cov]
237236
cmd = """
@@ -330,4 +329,4 @@ name = "agent_framework_meta"
330329

331330
[build-system]
332331
requires = ["flit-core >= 3.11,<4.0"]
333-
build-backend = "flit_core.buildapi"
332+
build-backend = "flit_core.buildapi"

0 commit comments

Comments
 (0)