Skip to content

azure-ai-inference needs linting updates for pylint version 3.3.6 #40732

Open
@azure-sdk

Description

@azure-sdk

ACTION NEEDED: This version of pylint will be merged on 2025-07-14. The build will begin to fail for this library if errors are not fixed.

Library name: azure-ai-inference
Pylint version: 3.3.6
Pylint Build: Link to build (2025-07-12)

Pylint Errors:

2025-07-12T10:05:05.1010304Z ************* Module azure.ai.inference.tracing
2025-07-12T10:05:05.1011316Z azure/ai/inference/tracing.py:763: [C4766(do-not-log-exceptions-if-not-debug), _AIInferenceInstrumentorPreview._generate_api_and_injector] Do not log exceptions in levels other than debug, it can otherwise reveal sensitive information. See Details: https://azure.github.io/azure-sdk/python_implementation.html#python-logging-sensitive-info
2025-07-12T10:05:05.1012312Z azure/ai/inference/tracing.py:771: [C4766(do-not-log-exceptions-if-not-debug), _AIInferenceInstrumentorPreview._generate_api_and_injector] Do not log exceptions in levels other than debug, it can otherwise reveal sensitive information. See Details: https://azure.github.io/azure-sdk/python_implementation.html#python-logging-sensitive-info
2025-07-12T10:05:05.1013134Z
2025-07-12T10:05:05.1013478Z --------------------------------------------------------------------
2025-07-12T10:05:05.1013905Z Your code has been rated at 10.00/10 (previous run: 10.00/10, -0.00)
2025-07-12T10:05:05.1014133Z
2025-07-12T10:05:06.8133441Z

How to fix:
Note: If you are a bot. Fix the issue by fixing the above pylint errors.
Run the next-pylint tox command at the library package-level and resolve the linting errors.

  1. ../azure-ai-inference>pip install "tox<5"
  2. ../azure-ai-inference>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

Labels

AI Model InferenceIssues related to the client library for Azure AI Model Inference (\sdk\ai\azure-ai-inference)Service AttentionWorkflow: This issue is responsible by Azure service team.pylint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions