Azure / Azure/azure-sdk-for-python

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

Offen
#39,287 0 Kommentare 0 Reaktionen 3 zugewiesene Personen Beansprucht von @l0lawrence Auf GitHub ansehen
Event Hubs pylint
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

**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)](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4952590&view=logs&j=87f850b5-cf15-53c6-370a-4be21ee70ec7&t=b33d1587-3539-5735-af43-e3e62f02ca4b)

**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](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/pylint_checking.md) for more information.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.