azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

azure-iot-deviceupdate needs linting updates for pylint version 3.3.6

Open azure-sdk opened this issue 10 months ago • 1 comments

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

Pylint Errors:

2025-06-21T10:33:25.8174111Z ************* Module azure 2025-06-21T10:33:25.8174875Z azure/init.py:1: [C0304(missing-final-newline), ] Final newline missing 2025-06-21T10:33:25.8175380Z ************* Module azure.iot.init 2025-06-21T10:33:25.8175856Z azure/iot/init.py:1: [C0304(missing-final-newline), ] Final newline missing 2025-06-21T10:33:25.8176369Z ************* Module azure.iot.deviceupdate._client 2025-06-21T10:33:25.8176947Z azure/iot/deviceupdate/_client.py:21: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of if TYPE_CHECKING block. You can import modules from typing outside of TYPE_CHECKING. 2025-06-21T10:33:25.8177965Z azure/iot/deviceupdate/_client.py:67: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateClient.send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:25.8179414Z azure/iot/deviceupdate/_client.py:93: [C4761(do-not-use-legacy-typing), DeviceUpdateClient.close] Do not use legacy typing using comments. 2025-06-21T10:33:25.8180195Z azure/iot/deviceupdate/_client.py:97: [C4761(do-not-use-legacy-typing), DeviceUpdateClient.enter] Do not use legacy typing using comments. 2025-06-21T10:33:25.8180900Z azure/iot/deviceupdate/_client.py:102: [C4761(do-not-use-legacy-typing), DeviceUpdateClient.exit] Do not use legacy typing using comments. 2025-06-21T10:33:25.8181483Z ************* Module azure.iot.deviceupdate._configuration 2025-06-21T10:33:25.8182080Z azure/iot/deviceupdate/_configuration.py:58: [C4761(do-not-use-legacy-typing), DeviceUpdateClientConfiguration._configure] Do not use legacy typing using comments. 2025-06-21T10:33:25.8182972Z ************* Module azure.iot.deviceupdate._vendor 2025-06-21T10:33:25.8183584Z azure/iot/deviceupdate/_vendor.py:9: [R1710(inconsistent-return-statements), _format_url_section] Either all return statements in a function should return an expression, or none of them should. 2025-06-21T10:33:25.8184281Z ************* Module azure.iot.deviceupdate.operations._operations 2025-06-21T10:33:25.8185155Z azure/iot/deviceupdate/operations/_operations.py:22: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core. 2025-06-21T10:33:25.8185977Z azure/iot/deviceupdate/operations/_operations.py:74: [C4751(name-too-long), build_device_update_import_update_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8186694Z azure/iot/deviceupdate/operations/_operations.py:132: [C4751(name-too-long), build_device_update_delete_update_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8187370Z azure/iot/deviceupdate/operations/_operations.py:161: [C4751(name-too-long), build_device_update_list_providers_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8188023Z azure/iot/deviceupdate/operations/_operations.py:210: [C4751(name-too-long), build_device_update_list_versions_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8188716Z azure/iot/deviceupdate/operations/_operations.py:308: [C4751(name-too-long), build_device_update_list_operation_statuses_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8189490Z azure/iot/deviceupdate/operations/_operations.py:338: [C4751(name-too-long), build_device_update_get_operation_status_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8190222Z azure/iot/deviceupdate/operations/_operations.py:367: [C4751(name-too-long), build_device_management_list_device_classes_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8190910Z azure/iot/deviceupdate/operations/_operations.py:395: [C4751(name-too-long), build_device_management_get_device_class_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8191630Z azure/iot/deviceupdate/operations/_operations.py:422: [C4751(name-too-long), build_device_management_update_device_class_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8192560Z azure/iot/deviceupdate/operations/_operations.py:452: [C4751(name-too-long), build_device_management_delete_device_class_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8193375Z azure/iot/deviceupdate/operations/_operations.py:479: [C4751(name-too-long), build_device_management_list_installable_updates_for_device_class_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8194157Z azure/iot/deviceupdate/operations/_operations.py:506: [C4751(name-too-long), build_device_management_list_devices_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8195171Z azure/iot/deviceupdate/operations/_operations.py:534: [C4751(name-too-long), build_device_management_import_devices_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8195917Z azure/iot/deviceupdate/operations/_operations.py:561: [C4751(name-too-long), build_device_management_get_device_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8196646Z azure/iot/deviceupdate/operations/_operations.py:586: [C4751(name-too-long), build_device_management_get_device_module_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8197406Z azure/iot/deviceupdate/operations/_operations.py:614: [C4751(name-too-long), build_device_management_get_update_compliance_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8198132Z azure/iot/deviceupdate/operations/_operations.py:638: [C4751(name-too-long), build_device_management_list_groups_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8198869Z azure/iot/deviceupdate/operations/_operations.py:666: [C4751(name-too-long), build_device_management_get_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8199627Z azure/iot/deviceupdate/operations/_operations.py:691: [C4751(name-too-long), build_device_management_delete_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8200377Z azure/iot/deviceupdate/operations/_operations.py:716: [C4751(name-too-long), build_device_management_get_update_compliance_for_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8201342Z azure/iot/deviceupdate/operations/_operations.py:743: [C4751(name-too-long), build_device_management_list_best_updates_for_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8202117Z azure/iot/deviceupdate/operations/_operations.py:770: [C4751(name-too-long), build_device_management_list_deployments_for_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8203090Z azure/iot/deviceupdate/operations/_operations.py:799: [C4751(name-too-long), build_device_management_get_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8203863Z azure/iot/deviceupdate/operations/_operations.py:827: [C4751(name-too-long), build_device_management_create_or_update_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8204613Z azure/iot/deviceupdate/operations/_operations.py:858: [C4751(name-too-long), build_device_management_delete_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8205352Z azure/iot/deviceupdate/operations/_operations.py:886: [C4751(name-too-long), build_device_management_get_deployment_status_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8206142Z azure/iot/deviceupdate/operations/_operations.py:914: [C4751(name-too-long), build_device_management_list_device_class_subgroups_for_group_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8206926Z azure/iot/deviceupdate/operations/_operations.py:943: [C4751(name-too-long), build_device_management_get_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8207672Z azure/iot/deviceupdate/operations/_operations.py:971: [C4751(name-too-long), build_device_management_delete_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8208511Z azure/iot/deviceupdate/operations/_operations.py:999: [C4751(name-too-long), build_device_management_get_device_class_subgroup_update_compliance_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8209331Z azure/iot/deviceupdate/operations/_operations.py:1029: [C4751(name-too-long), build_device_management_get_best_updates_for_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8210138Z azure/iot/deviceupdate/operations/_operations.py:1057: [C4751(name-too-long), build_device_management_list_deployments_for_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8211185Z azure/iot/deviceupdate/operations/_operations.py:1087: [C4751(name-too-long), build_device_management_get_deployment_for_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:25.8212000Z azure/iot/deviceupdate/operations/_operations.py:1116: [C4751(name-too-long), build_device_management_delete_deployment_for_device_class_subgroup_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8434308Z azure/iot/deviceupdate/operations/_operations.py:1145: [C4751(name-too-long), build_device_management_stop_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8435361Z azure/iot/deviceupdate/operations/_operations.py:1174: [C4751(name-too-long), build_device_management_retry_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8436086Z azure/iot/deviceupdate/operations/_operations.py:1203: [C4751(name-too-long), build_device_management_get_device_class_subgroup_deployment_status_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8436870Z azure/iot/deviceupdate/operations/_operations.py:1232: [C4751(name-too-long), build_device_management_list_device_states_for_device_class_subgroup_deployment_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8437885Z azure/iot/deviceupdate/operations/_operations.py:1269: [C4751(name-too-long), build_device_management_get_operation_status_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8440071Z azure/iot/deviceupdate/operations/_operations.py:1298: [C4751(name-too-long), build_device_management_list_operation_statuses_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8443378Z azure/iot/deviceupdate/operations/_operations.py:1328: [C4751(name-too-long), build_device_management_start_log_collection_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8446086Z azure/iot/deviceupdate/operations/_operations.py:1358: [C4751(name-too-long), build_device_management_get_log_collection_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8447443Z azure/iot/deviceupdate/operations/_operations.py:1385: [C4751(name-too-long), build_device_management_list_log_collections_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8448651Z azure/iot/deviceupdate/operations/_operations.py:1409: [C4751(name-too-long), build_device_management_get_log_collection_detailed_status_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8450093Z azure/iot/deviceupdate/operations/_operations.py:1436: [C4751(name-too-long), build_device_management_list_health_of_devices_request] Name is over standard character length of 40. 2025-06-21T10:33:28.8460324Z azure/iot/deviceupdate/operations/_operations.py:1687: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8461729Z azure/iot/deviceupdate/operations/_operations.py:1812: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8463399Z azure/iot/deviceupdate/operations/_operations.py:1906: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "content_type, polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8465016Z azure/iot/deviceupdate/operations/_operations.py:2218: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_delete_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8466386Z azure/iot/deviceupdate/operations/_operations.py:3313: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.update_device_class] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8466993Z azure/iot/deviceupdate/operations/_operations.py:3470: [C4751(name-too-long), DeviceManagementOperations.list_installable_updates_for_device_class] Name is over standard character length of 40. 2025-06-21T10:33:28.8467664Z azure/iot/deviceupdate/operations/_operations.py:3742: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.begin_import_devices] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8468384Z azure/iot/deviceupdate/operations/_operations.py:4938: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.create_or_update_deployment] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8468934Z azure/iot/deviceupdate/operations/_operations.py:5464: [C4751(name-too-long), DeviceManagementOperations.get_device_class_subgroup_update_compliance] Name is over standard character length of 40. 2025-06-21T10:33:28.8469323Z azure/iot/deviceupdate/operations/_operations.py:5533: [C4751(name-too-long), DeviceManagementOperations.get_best_updates_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:28.8469710Z azure/iot/deviceupdate/operations/_operations.py:5608: [C4751(name-too-long), DeviceManagementOperations.list_deployments_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:28.8470101Z azure/iot/deviceupdate/operations/_operations.py:5856: [C4751(name-too-long), DeviceManagementOperations.delete_deployment_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:28.8470491Z azure/iot/deviceupdate/operations/_operations.py:6127: [C4751(name-too-long), DeviceManagementOperations.get_device_class_subgroup_deployment_status] Name is over standard character length of 40. 2025-06-21T10:33:28.8470882Z azure/iot/deviceupdate/operations/_operations.py:6226: [C4751(name-too-long), DeviceManagementOperations.list_device_states_for_device_class_subgroup_deployment] Name is over standard character length of 40. 2025-06-21T10:33:28.8471434Z azure/iot/deviceupdate/operations/_operations.py:6637: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.start_log_collection] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8471957Z ************* Module azure.iot.deviceupdate.aio._client 2025-06-21T10:33:28.8472443Z azure/iot/deviceupdate/aio/_client.py:21: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of if TYPE_CHECKING block. You can import modules from typing outside of TYPE_CHECKING. 2025-06-21T10:33:28.8473033Z azure/iot/deviceupdate/aio/_client.py:67: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateClient.send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:28.8473486Z ************* Module azure.iot.deviceupdate.aio.operations._operations 2025-06-21T10:33:28.8473810Z azure/iot/deviceupdate/aio/operations/_operations.py:22: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core. 2025-06-21T10:33:30.0464744Z azure/iot/deviceupdate/aio/operations/_operations.py:316: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0469234Z azure/iot/deviceupdate/aio/operations/_operations.py:441: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0471967Z azure/iot/deviceupdate/aio/operations/_operations.py:535: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_import_update] "content_type, polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0475714Z azure/iot/deviceupdate/aio/operations/_operations.py:848: [C4758(docstring-keyword-should-match-keyword-only), DeviceUpdateOperations.begin_delete_update] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0477137Z azure/iot/deviceupdate/aio/operations/_operations.py:1948: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.update_device_class] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0478272Z azure/iot/deviceupdate/aio/operations/_operations.py:2107: [C4751(name-too-long), DeviceManagementOperations.list_installable_updates_for_device_class] Name is over standard character length of 40. 2025-06-21T10:33:30.0479437Z azure/iot/deviceupdate/aio/operations/_operations.py:2379: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.begin_import_devices] "polling_interval, continuation_token, polling" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0481202Z azure/iot/deviceupdate/aio/operations/_operations.py:3578: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.create_or_update_deployment] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0482462Z azure/iot/deviceupdate/aio/operations/_operations.py:4104: [C4751(name-too-long), DeviceManagementOperations.get_device_class_subgroup_update_compliance] Name is over standard character length of 40. 2025-06-21T10:33:30.0483175Z azure/iot/deviceupdate/aio/operations/_operations.py:4175: [C4751(name-too-long), DeviceManagementOperations.get_best_updates_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:30.0483846Z azure/iot/deviceupdate/aio/operations/_operations.py:4252: [C4751(name-too-long), DeviceManagementOperations.list_deployments_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:30.0484641Z azure/iot/deviceupdate/aio/operations/_operations.py:4500: [C4751(name-too-long), DeviceManagementOperations.delete_deployment_for_device_class_subgroup] Name is over standard character length of 40. 2025-06-21T10:33:30.0485298Z azure/iot/deviceupdate/aio/operations/_operations.py:4771: [C4751(name-too-long), DeviceManagementOperations.get_device_class_subgroup_deployment_status] Name is over standard character length of 40. 2025-06-21T10:33:30.0485976Z azure/iot/deviceupdate/aio/operations/_operations.py:4870: [C4751(name-too-long), DeviceManagementOperations.list_device_states_for_device_class_subgroup_deployment] Name is over standard character length of 40. 2025-06-21T10:33:30.0486932Z azure/iot/deviceupdate/aio/operations/_operations.py:5283: [C4758(docstring-keyword-should-match-keyword-only), DeviceManagementOperations.start_log_collection] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings 2025-06-21T10:33:30.0487546Z 2025-06-21T10:33:30.0487860Z ----------------------------------- 2025-06-21T10:33:30.0488209Z Your code has been rated at 9.75/10 2025-06-21T10:33:30.0488386Z 2025-06-21T10:33:31.2012064Z

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-iot-deviceupdate>pip install "tox<5"
  2. ../azure-iot-deviceupdate>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

azure-sdk avatar Jan 18 '25 11:01 azure-sdk