Skip to content

fix(azure-monitor-opentelemetry): Resolve pylint errors (#48011)#48034

Open
JacksonWeber wants to merge 1 commit into
Azure:mainfrom
JacksonWeber:jacksonweber/fix-pylint-monitor-opentelemetry-48011
Open

fix(azure-monitor-opentelemetry): Resolve pylint errors (#48011)#48034
JacksonWeber wants to merge 1 commit into
Azure:mainfrom
JacksonWeber:jacksonweber/fix-pylint-monitor-opentelemetry-48011

Conversation

@JacksonWeber

Copy link
Copy Markdown
Member

Addresses #48011 — resolves the outstanding next-pylint (4.0.6) failure for azure-monitor-opentelemetry.

Change

  • Samples — Add an inline disable for C4749 (networking-import-outside-azure-core-transport) on the import httpx statement in samples/tracing/http_httpx.py, matching the existing convention already used for import requests in http_requests.py.

Note

This branch was rebased onto the latest main. The other errors originally reported in #48011C4766 (do-not-log-exceptions-if-not-debug) in the main package and lint issues in the browserSdkLoader tests — have since been resolved upstream, so the httpx sample is the only remaining next-pylint failure.

Verification

  • next-pylint (pylint 4.0.6 + azure-pylint-guidelines-checker 0.5.7) on main package, tests, and samples → all 10.00/10, exit 0.
  • black --check passes.

…zure#48011)

Add inline disable for C4749 (networking-import-outside-azure-core-transport)
on the `import httpx` statement in the http_httpx tracing sample, matching the
existing convention used for `import requests` in http_requests.py.

The remaining next-pylint errors originally reported in Azure#48011 (C4766 in the
main package and lint issues in the browserSdkLoader tests) have since been
resolved upstream; this rebased change addresses the only outstanding
next-pylint failure for the package.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 219ddb2e-a7c0-4d3c-9be9-0f098587dc09

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

Resolves the remaining Pylint 4.0.6 failure in the HTTPX tracing sample.

Changes:

  • Disables the expected Azure Core transport lint warning for direct HTTPX usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Distro Monitor OpenTelemetry Distro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants