Skip to content

azure-eventhub-checkpointstoreblob-aio needs linting updates for pylint version 3.3.6 #39287

@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-eventhub-checkpointstoreblob-aio
Pylint version: 3.3.6
Pylint Build: Link to build (2025-06-08)

Pylint Errors:

2025-06-08T23:05:03.6370229Z ************* Module azure.eventhub.extensions.checkpointstoreblobaio._blobstoragecsaio
2025-06-08T23:05:03.6373283Z azure/eventhub/extensions/checkpointstoreblobaio/_blobstoragecsaio.py:9: [C4763(do-not-import-asyncio), ] If asyncio.sleep() is being called and there is an azure core transport created, we should instead use the sleep function from the azure.core.pipeline.transport context instead of importing asyncio. For other imports of asyncio, ignore this warning.
2025-06-08T23:05:03.6376091Z azure/eventhub/extensions/checkpointstoreblobaio/_blobstoragecsaio.py:179: [C4766(do-not-log-exceptions-if-not-debug), BlobCheckpointStore._claim_one_partition] 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-08T23:05:03.6378595Z azure/eventhub/extensions/checkpointstoreblobaio/_blobstoragecsaio.py:236: [C4766(do-not-log-exceptions-if-not-debug), BlobCheckpointStore.list_ownership] 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-08T23:05:03.6381389Z azure/eventhub/extensions/checkpointstoreblobaio/_blobstoragecsaio.py:236: [C4762(do-not-log-raised-errors), BlobCheckpointStore.list_ownership] Do not log an exception that you re-raise 'as-is'
2025-06-08T23:05:03.6381995Z
2025-06-08T23:05:03.6383088Z ------------------------------------------------------------------
2025-06-08T23:05:03.6384195Z Your code has been rated at 9.64/10 (previous run: 9.77/10, -0.13)
2025-06-08T23:05:03.6384641Z
2025-06-08T23:05:04.8749825Z

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

See the Pylint Guide for more information.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions