Description
ACTION NEEDED: This version of pylint will be merged on 2025-04-14. The build will begin to fail for this library if errors are not fixed.
Library name: azure-eventgrid
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)
Pylint Errors:
2025-04-06T12:48:17.0302630Z ************* Module azure.eventgrid._legacy._publisher_client
2025-04-06T12:48:17.0303558Z azure/eventgrid/_legacy/_publisher_client.py:119: [C4761(do-not-use-legacy-typing), EventGridPublisherClient._policies] Do not use legacy typing using comments.
2025-04-06T12:48:17.0304246Z azure/eventgrid/_legacy/_publisher_client.py:237: [C4761(do-not-use-legacy-typing), EventGridPublisherClient.close] Do not use legacy typing using comments.
2025-04-06T12:48:17.0304926Z azure/eventgrid/_legacy/_publisher_client.py:242: [C4761(do-not-use-legacy-typing), EventGridPublisherClient.enter] Do not use legacy typing using comments.
2025-04-06T12:48:17.0305468Z azure/eventgrid/_legacy/_publisher_client.py:247: [C4761(do-not-use-legacy-typing), EventGridPublisherClient.exit] Do not use legacy typing using comments.
2025-04-06T12:48:17.0305910Z ************* Module azure.eventgrid._legacy._helpers
2025-04-06T12:48:17.0306333Z azure/eventgrid/_legacy/_helpers.py:91: [C4761(do-not-use-legacy-typing), _is_cloud_event] Do not use legacy typing using comments.
2025-04-06T12:48:17.0306842Z azure/eventgrid/_legacy/_helpers.py:100: [C4761(do-not-use-legacy-typing), _is_eventgrid_event_format] Do not use legacy typing using comments.
2025-04-06T12:48:17.0307273Z ************* Module azure.eventgrid._legacy._signature_credential_policy
2025-04-06T12:48:17.0307746Z azure/eventgrid/_legacy/_signature_credential_policy.py:23: [C4761(do-not-use-legacy-typing), EventGridSasCredentialPolicy.init] Do not use legacy typing using comments.
2025-04-06T12:48:17.0308179Z ************* Module azure.eventgrid._legacy._policies
2025-04-06T12:48:17.0308613Z azure/eventgrid/_legacy/_policies.py:30: [C4761(do-not-use-legacy-typing), CloudEventDistributedTracingPolicy.on_request] Do not use legacy typing using comments.
2025-04-06T12:48:17.0308854Z
2025-04-06T12:48:17.0309195Z -----------------------------------
2025-04-06T12:48:17.0309509Z Your code has been rated at 9.98/10
2025-04-06T12:48:17.0309659Z
2025-04-06T12:48:18.2261000Z
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-eventgrid>pip install "tox<5"
../azure-eventgrid>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .
See the Pylint Guide for more information.