azure-sdk-for-python
azure-sdk-for-python copied to clipboard
azure-ai-agents needs linting updates for pylint version 3.3.6
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-agents Pylint version: 3.3.6 Pylint Build: Link to build (2025-06-21)
Pylint Errors:
2025-06-21T10:04:00.3097295Z ************* Module azure.ai.agents.aio.operations._patch 2025-06-21T10:04:00.3100442Z azure/ai/agents/aio/operations/_patch.py:1617: [C4766(do-not-log-exceptions-if-not-debug), FilesOperations.save] 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-06-21T10:04:00.3101303Z azure/ai/agents/aio/operations/_patch.py:1617: [C4762(do-not-log-raised-errors), FilesOperations.save] Do not log an exception that you re-raise 'as-is' 2025-06-21T10:04:00.3102084Z ************* Module azure.ai.agents.telemetry._ai_agents_instrumentor 2025-06-21T10:04:00.3102801Z azure/ai/agents/telemetry/_ai_agents_instrumentor.py:1842: [C4766(do-not-log-exceptions-if-not-debug), _AIAgentsInstrumentorPreview._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-06-21T10:04:00.3103754Z azure/ai/agents/telemetry/_ai_agents_instrumentor.py:1850: [C4766(do-not-log-exceptions-if-not-debug), _AIAgentsInstrumentorPreview._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-06-21T10:04:00.3104427Z ************* Module azure.ai.agents.models._patch 2025-06-21T10:04:00.3105077Z azure/ai/agents/models/_patch.py:1287: [C4766(do-not-log-exceptions-if-not-debug), BaseToolSet._create_tool_resources_from_dict] 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-06-21T10:04:00.3105873Z azure/ai/agents/models/_patch.py:1594: [C4766(do-not-log-exceptions-if-not-debug), AsyncAgentEventHandler._process_event] 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-06-21T10:04:00.3106557Z azure/ai/agents/models/_patch.py:1721: [C4766(do-not-log-exceptions-if-not-debug), AgentEventHandler._process_event] 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-06-21T10:04:00.3107246Z ************* Module azure.ai.agents.operations._patch 2025-06-21T10:04:00.3107786Z azure/ai/agents/operations/_patch.py:1617: [C4766(do-not-log-exceptions-if-not-debug), FilesOperations.save] 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-06-21T10:04:00.3108358Z azure/ai/agents/operations/_patch.py:1617: [C4762(do-not-log-raised-errors), FilesOperations.save] Do not log an exception that you re-raise 'as-is' 2025-06-21T10:04:00.3108577Z 2025-06-21T10:04:00.3108946Z ----------------------------------- 2025-06-21T10:04:00.3109289Z Your code has been rated at 9.98/10 2025-06-21T10:04:00.3109439Z 2025-06-21T10:04:02.6062555Z
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.
../azure-ai-agents>pip install "tox<5"../azure-ai-agents>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .
See the Pylint Guide for more information.