Skip to content

azure-ai-ml needs linting updates for pylint version 3.3.6 #1

@kingernupur

Description

@kingernupur

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-ml
Pylint version: 3.3.6
Pylint Build: Link to build (2025-06-15)

Pylint Errors:

2025-06-15T17:51:22.7537056Z ************* Module azure.ai.ml._azure_environments
2025-06-15T17:51:22.7539187Z azure/ai/ml/_azure_environments.py:300: [C4766(do-not-log-exceptions-if-not-debug), _get_clouds_by_metadata_url] 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-15T17:51:22.7540453Z azure/ai/ml/_azure_environments.py:333: [C4766(do-not-log-exceptions-if-not-debug), _convert_arm_to_cli] 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-15T17:51:22.7541334Z ************* Module azure.ai.ml.entities._job.job
2025-06-15T17:51:22.7542016Z azure/ai/ml/entities/_job/job.py:337: [C4766(do-not-log-exceptions-if-not-debug), Job._from_rest_object] 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-15T17:51:22.7543141Z ************* Module azure.ai.ml._arm_deployments.arm_deployment_executor
2025-06-15T17:51:22.7543764Z azure/ai/ml/_arm_deployments/arm_deployment_executor.py:123: [C4762(do-not-log-raised-errors), ArmDeploymentExecutor.deploy_resource] Do not log an exception that you re-raise 'as-is'
2025-06-15T17:51:22.7544380Z ************* Module azure.ai.ml.operations._component_operations
2025-06-15T17:51:22.7545140Z azure/ai/ml/operations/_component_operations.py:503: [C4766(do-not-log-exceptions-if-not-debug), ComponentOperations._reset_version_if_no_change] 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-15T17:51:22.7546217Z azure/ai/ml/operations/_component_operations.py:505: [C4766(do-not-log-exceptions-if-not-debug), ComponentOperations._reset_version_if_no_change] 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-15T17:51:22.7547115Z ************* Module azure.ai.ml.operations._workspace_operations_base
2025-06-15T17:51:22.7548003Z azure/ai/ml/operations/_workspace_operations_base.py:1136: [C4766(do-not-log-exceptions-if-not-debug), CustomArmTemplateDeploymentPollingMethod.resource] 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-15T17:51:22.7548856Z ************* Module azure.ai.ml._utils._artifact_utils
2025-06-15T17:51:22.7549682Z azure/ai/ml/_utils/_artifact_utils.py:242: [C4766(do-not-log-exceptions-if-not-debug), ArtifactCache._download_artifacts] 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-15T17:51:22.7550333Z
2025-06-15T17:51:22.7550747Z ------------------------------------
2025-06-15T17:51:22.7551243Z Your code has been rated at 10.00/10
2025-06-15T17:51:22.7551456Z
2025-06-15T17:51:45.5147962Z

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-ml>pip install "tox<5"
../azure-ai-ml>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .
See the Pylint Guide for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions