Azure / Azure/azure-sdk-for-python

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

オープン
#39,287 コメント 0 件 リアクション 0 件 担当者 3 名 @l0lawrence が担当を希望しています GitHub で見る
Event Hubs pylint
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
213

説明

**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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。