Skip to content

Comments

Python: Fix code samples in AGENTS.md files that fail pre-commit checks#3779

Merged
moonbox3 merged 2 commits intomicrosoft:mainfrom
moonbox3:update-py-files
Feb 10, 2026
Merged

Python: Fix code samples in AGENTS.md files that fail pre-commit checks#3779
moonbox3 merged 2 commits intomicrosoft:mainfrom
moonbox3:update-py-files

Conversation

@moonbox3
Copy link
Contributor

Motivation and Context

Fix code samples in AGENTS.md files that fail pre-commit checks

Description

Fix code samples in AGENTS.md files that fail pre-commit checks

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings February 10, 2026 01:36
@moonbox3 moonbox3 requested a review from a team as a code owner February 10, 2026 01:36
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Feb 10, 2026
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Feb 10, 2026

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL16601205787% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
3928 225 💤 0 ❌ 0 🔥 1m 8s ⏱️

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Python package documentation snippets (AGENTS.md) to satisfy repo markdown code-block linting/pre-commit checks by aligning examples with current APIs; also updates the Python uv.lock dependency lockfile.

Changes:

  • Updated durabletask AGENTS.md usage example to use TaskHubGrpcClient + DurableAIAgentClient.get_agent(...).run(...) (instead of calling a nonexistent client.run).
  • Updated declarative AGENTS.md usage example to use instance factory methods (create_*_from_yaml_path) instead of nonexistent create_from_file APIs.
  • Refreshed python/uv.lock, upgrading several dependency versions.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
python/uv.lock Dependency lockfile updated with multiple package version bumps.
python/packages/durabletask/AGENTS.md Updated Durable Task integration sample code to match current client/worker APIs.
python/packages/declarative/AGENTS.md Updated declarative factory sample code to use current instance methods.

@moonbox3 moonbox3 enabled auto-merge February 10, 2026 01:42
@moonbox3 moonbox3 self-assigned this Feb 10, 2026
@moonbox3 moonbox3 added this pull request to the merge queue Feb 10, 2026
Merged via the queue into microsoft:main with commit 56603ab Feb 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants