Skip to content

azure-core needs linting updates for pylint version 3.2.7 #39295

Open
@azure-sdk

Description

@azure-sdk

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-core
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)

Pylint Errors:

2025-04-06T07:03:54.5882953Z ************* Module azure.core.pipeline._base_async
2025-04-06T07:03:54.5883874Z azure/core/pipeline/_base_async.py:203: [C4763(do-not-import-asyncio), AsyncPipeline._prepare_multipart_mixed_request] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5884632Z ************* Module azure.core.pipeline.transport._aiohttp
2025-04-06T07:03:54.5885111Z azure/core/pipeline/transport/_aiohttp.py:43: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5885564Z ************* Module azure.core.pipeline.transport._requests_asyncio
2025-04-06T07:03:54.5886030Z azure/core/pipeline/transport/_requests_asyncio.py:26: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5886486Z ************* Module azure.core.pipeline.transport._base_async
2025-04-06T07:03:54.5887005Z azure/core/pipeline/transport/_base_async.py:27: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5887488Z ************* Module azure.core.rest._aiohttp
2025-04-06T07:03:54.5887958Z azure/core/rest/_aiohttp.py:27: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5888452Z ************* Module azure.core.rest._requests_asyncio
2025-04-06T07:03:54.5888886Z azure/core/rest/_requests_asyncio.py:26: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5889322Z ************* Module azure.core.utils._pipeline_transport_rest_shared_async
2025-04-06T07:03:54.5889807Z azure/core/utils/_pipeline_transport_rest_shared_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5890320Z ************* Module azure.core.utils._utils
2025-04-06T07:03:54.5890787Z azure/core/utils/_utils.py:177: [C4763(do-not-import-asyncio), get_running_async_lock] Do not import the asyncio package directly in your library
2025-04-06T07:03:54.5891088Z
2025-04-06T07:03:54.5891403Z -----------------------------------
2025-04-06T07:03:54.5891749Z Your code has been rated at 9.98/10
2025-04-06T07:03:54.5891936Z
2025-04-06T07:03:56.6524867Z

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-core>pip install "tox<5"
  2. ../azure-core>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