Skip to content

Fix lint and format on langchain samples - #16

Merged
Radhika Gupta (rads-1996) merged 1 commit into
microsoft:mainfrom
rads-1996:fix-lint-on-samples
Apr 6, 2026
Merged

Radhika Gupta (rads-1996) merged 1 commit into
microsoft:mainfrom
rads-1996:fix-lint-on-samples

Conversation

@rads-1996

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 21:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the LangChain sample scripts to better conform to repo linting/formatting rules and improve readability/consistency in the sample configuration sections.

Changes:

  • Reformats samples and replaces lowercase config variables with module-level constants (e.g., ENDPOINT, API_KEY, MODEL_NAME).
  • Cleans up sample setup blocks (e.g., configure_azure_monitor(...) formatting; removes unused imports).
  • Adjusts comments/documentation blocks in samples to reflect current intended distro direction.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
samples/langchain/sample_opentelemetry.py Reformats header comments and replaces config vars with constants; updates setup comments and instrumentation teardown formatting.
samples/langchain/sample_langchain_azure.py Removes unused imports; reformats config/setup and some nested structures for readability; uses constants for endpoint/key/model.
samples/langchain/sample_arise_langchain.py Reformats Azure Monitor configuration and replaces config vars with constants; improves readability of the multimodal message structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread samples/langchain/sample_opentelemetry.py
Comment thread samples/langchain/sample_opentelemetry.py
Comment thread samples/langchain/sample_opentelemetry.py
Comment thread samples/langchain/sample_arise_langchain.py
Comment thread samples/langchain/sample_langchain_azure.py
@rads-1996
Radhika Gupta (rads-1996) merged commit 220a38b into microsoft:main Apr 6, 2026
10 checks passed
@rads-1996
Radhika Gupta (rads-1996) deleted the fix-lint-on-samples branch April 6, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants