Python: Consolidate dependency updates#7204
Merged
TaoChenOSU merged 18 commits intoJul 20, 2026
Merged
Conversation
Bumps [uv](https://github.com/astral-sh/uv) from 0.11.28 to 0.11.29. - [Release notes](https://github.com/astral-sh/uv/releases) - [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md) - [Commits](astral-sh/uv@0.11.28...0.11.29) --- updated-dependencies: - dependency-name: uv dependency-version: 0.11.29 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [zuban](https://github.com/zubanls/zubanls-python) from 0.8.2 to 0.9.0. - [Release notes](https://github.com/zubanls/zubanls-python/releases) - [Commits](zubanls/zuban@v0.8.2...v0.9.0) --- updated-dependencies: - dependency-name: zuban dependency-version: 0.9.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.15.20 to 0.15.22. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.15.20...0.15.22) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.21 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mypy](https://github.com/python/mypy) from 2.2.0 to 2.3.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.3.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [prek](https://github.com/j178/prek) from 0.4.8 to 0.4.10. - [Release notes](https://github.com/j178/prek/releases) - [Changelog](https://github.com/j178/prek/blob/master/CHANGELOG.md) - [Commits](j178/prek@v0.4.8...v0.4.10) --- updated-dependencies: - dependency-name: prek dependency-version: 0.4.10 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps azure-ai-projects from 2.2.0 to 2.3.0. --- updated-dependencies: - dependency-name: azure-ai-projects dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [types-python-dateutil](https://github.com/python/typeshed) from 2.9.0.20260518 to 2.9.0.20260716. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-python-dateutil dependency-version: 2.9.0.20260716 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mypy](https://github.com/python/mypy) from 2.2.0 to 2.3.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.3.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [botocore](https://github.com/boto/botocore) from 1.43.45 to 1.43.49. - [Commits](boto/botocore@1.43.45...1.43.49) --- updated-dependencies: - dependency-name: botocore dependency-version: 1.43.49 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
moonbox3
marked this pull request as ready for review
July 20, 2026 06:01
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request consolidates multiple Python dependency/tooling upgrades into a single coordinated refresh, and updates Foundry-related code/samples to handle azure-ai-projects 2.2 preview vs 2.3 stable operation namespaces.
Changes:
- Bump Python workspace/dev toolchain and runtime dependencies (including
uv,ruff,mypy,ty,zuban,prek,azure-ai-projects, and others) and regenerateuv.lock. - Migrate Ruff suppressions from legacy codes to rule names across packages/tests/samples.
- Add 2.2/2.3 compatibility shims for hosted-session and toolbox operations, with a focused Foundry unit test.
Reviewed changes
Copilot reviewed 50 out of 51 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| python/uv.lock | Updates locked dependency graph for the consolidated refresh (notably azure-ai-projects 2.3.0 and dev tool bumps). |
| python/pyproject.toml | Aligns workspace dev-tool pins and adjusts ty rules. |
| python/packages/tools/pyproject.toml | Migrates Ruff per-file ignore selectors to rule names for the tools package. |
| python/packages/tools/agent_framework_tools/shell/_session.py | Migrates Ruff suppression comment to new rule naming. |
| python/packages/tools/agent_framework_tools/shell/_killtree.py | Migrates Ruff suppression comment to new rule naming. |
| python/packages/tools/agent_framework_tools/shell/_executor.py | Migrates Ruff suppression comment to new rule naming. |
| python/packages/tools/agent_framework_tools/shell/_docker.py | Migrates Ruff suppressions for subprocess/tmpfs usage to new rule naming. |
| python/packages/openai/agent_framework_openai/_shared.py | Migrates Ruff suppression for token-scope constant to new rule naming. |
| python/packages/monty/pyproject.toml | Migrates Ruff per-file ignore selectors to new rule naming. |
| python/packages/lab/pyproject.toml | Aligns lab dev-tool pins and migrates Ruff ignore selectors to new rule naming. |
| python/packages/lab/lightning/samples/train_tau2_agent.py | Migrates Ruff suppressions to new rule naming. |
| python/packages/lab/lightning/samples/train_math_agent.py | Migrates Ruff suppressions to new rule naming. |
| python/packages/hyperlight/pyproject.toml | Migrates Ruff per-file ignore selectors to new rule naming. |
| python/packages/gemini/pyproject.toml | Migrates Ruff per-file ignore selectors to new rule naming. |
| python/packages/foundry/pyproject.toml | Expands supported azure-ai-projects upper bound to include 2.3.x. |
| python/packages/foundry/agent_framework_foundry/_agent.py | Adds stable-vs-beta hosted session operation fallback for create_session. |
| python/packages/foundry/tests/foundry/test_foundry_agent.py | Adds/adjusts tests to cover stable hosted-session operation selection. |
| python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py | Migrates Ruff commented-out-code suppression names. |
| python/packages/durabletask/pyproject.toml | Updates types-python-dateutil dev pin. |
| python/packages/durabletask/agent_framework_durabletask/_workflows/orchestrator.py | Migrates Ruff suppression for generator return to new rule naming. |
| python/packages/durabletask/agent_framework_durabletask/_worker.py | Migrates Ruff suppression for generator return to new rule naming. |
| python/packages/durabletask/agent_framework_durabletask/_durable_agent_state.py | Migrates Ruff suppressions for JSON-field constants to new rule naming. |
| python/packages/durabletask/agent_framework_durabletask/_constants.py | Migrates Ruff suppressions for JSON-field constants to new rule naming. |
| python/packages/devui/agent_framework_devui/_server.py | Migrates Ruff suppression to new rule naming. |
| python/packages/devui/agent_framework_devui/_discovery.py | Migrates Ruff suppressions for blocking pathlib calls in async contexts. |
| python/packages/devui/agent_framework_devui/_cli.py | Migrates Ruff suppressions for print usage in CLI output. |
| python/packages/core/tests/core/test_middleware_with_chat.py | Updates ty suppression annotations for updated diagnostics. |
| python/packages/core/tests/core/test_middleware_with_agent.py | Updates ty suppression annotations for updated diagnostics. |
| python/packages/core/tests/core/test_agents.py | Updates ty suppression annotations for updated diagnostics. |
| python/packages/core/agent_framework/observability.py | Migrates Ruff suppression on OTel metric names. |
| python/packages/core/agent_framework/_workflows/_workflow.py | Updates file-level Ruff suppression style and removes per-line suppressions. |
| python/packages/core/agent_framework/_workflows/_typing_utils.py | Migrates Ruff suppression for eval usage to new rule naming. |
| python/packages/core/agent_framework/_workflows/_events.py | Migrates Ruff suppression for line-length. |
| python/packages/core/agent_framework/_workflows/_edge_runner.py | Migrates Ruff suppression for line-length. |
| python/packages/core/agent_framework/_workflows/_checkpoint_encoding.py | Migrates Ruff suppressions for pickle usage to new rule naming. |
| python/packages/core/agent_framework/_skills.py | Migrates Ruff suppressions and minor lint-related annotations. |
| python/packages/core/agent_framework/_mcp.py | Migrates Ruff suppression for “unused async” helper. |
| python/packages/core/agent_framework/_harness/_file_memory.py | Migrates Ruff suppressions for line-length. |
| python/packages/core/agent_framework/_harness/_file_access.py | Migrates Ruff suppressions for line-length. |
| python/packages/core/agent_framework/_evaluation.py | Migrates Ruff suppression for intentional assert usage. |
| python/packages/core/agent_framework/_compaction.py | Migrates Ruff suppression for metadata-key constants. |
| python/packages/core/agent_framework/init.py | Updates file-level Ruff suppression style for exports. |
| python/packages/chatkit/pyproject.toml | Migrates Ruff ignore selector name. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_routes.py | Migrates Ruff suppression for env var casing rule. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_hitl_context.py | Migrates Ruff suppression for loopback/bind-all constants. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_app.py | Migrates Ruff suppression for generator return. |
| python/packages/azure-contentunderstanding/pyproject.toml | Migrates Ruff per-file ignore selectors to new rule naming. |
| python/samples/04-hosting/foundry-hosted-agents/responses/using_deployed_agent.py | Adds 2.2/2.3 hosted-session operations fallback for samples. |
| python/samples/03-workflows/declarative/invoke_foundry_toolbox_mcp/toolbox_provisioning.py | Adds 2.2/2.3 toolbox operations fallback for sample provisioning. |
| python/samples/02-agents/providers/foundry/foundry_chat_client_with_toolbox.py | Adds 2.2/2.3 toolbox operations fallback for sample usage. |
| python/packages/ag-ui/tests/ag_ui/test_ag_ui_client.py | Tightens type assertions/casts for streamed updates under newer typing behavior. |
eavanvalkenburg
approved these changes
Jul 20, 2026
westey-m
approved these changes
Jul 20, 2026
TaoChenOSU
approved these changes
Jul 20, 2026
This was referenced Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
This consolidates the open Python Dependabot updates into one coordinated dependency refresh. Several upgrades change repository lint and type-check behavior, while
azure-ai-projects2.3 moves hosted-session and toolbox operations to stable client namespaces. Landing the updates together keeps the workspace, package code, tests, and samples compatible.Description & Review Guide
uv,ruff,mypy,ty,zuban,prek,azure-ai-projects,types-python-dateutil, andbotocoreto the versions requested by the source PRs.uv.lock, align the lab development-tool pins, and apply the Ruff 0.15.22 suppression migration.azure-ai-projects2.2 preview and 2.3 stable hosted-session/toolbox operation paths in Foundry code and samples, with focused tests.azure-ai-projectsbounds.Related Issue
Supersedes:
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.