Azure / Azure/azure-sdk-for-python
azure-eventhub-checkpointstoreblob needs linting updates for pylint version 3.3.6
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
**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
**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:04:29.5629585Z ************* Module azure.eventhub.extensions.checkpointstoreblob._blobstoragecs
2025-06-08T23:04:29.5634252Z azure/eventhub/extensions/checkpointstoreblob/_blobstoragecs.py:199: [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:04:29.5636953Z azure/eventhub/extensions/checkpointstoreblob/_blobstoragecs.py:256: [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:04:29.5639563Z azure/eventhub/extensions/checkpointstoreblob/_blobstoragecs.py:256: [C4762(do-not-log-raised-errors), BlobCheckpointStore.list_ownership] Do not log an exception that you re-raise 'as-is'
2025-06-08T23:04:29.5640699Z
2025-06-08T23:04:29.5642381Z ------------------------------------------------------------------
2025-06-08T23:04:29.5644189Z Your code has been rated at 9.77/10 (previous run: 9.96/10, -0.19)
2025-06-08T23:04:29.5644922Z
2025-06-08T23:04:30.5103505Z
**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>pip install "tox<5"`
2) `../azure-eventhub-checkpointstoreblob>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.
Contributor guide
Assessment
This issue has not been assessed yet.