Skip to content

azure-mixedreality-authentication needs linting updates for pylint version 3.2.7 #31598

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

Pylint Errors:

2025-04-06T15:18:17.2528992Z ************* Module azure.mixedreality.authentication._utils
2025-04-06T15:18:17.2529857Z azure/mixedreality/authentication/_utils.py:16: [C4761(do-not-use-legacy-typing), convert_to_access_token] Do not use legacy typing using comments.
2025-04-06T15:18:17.2530479Z azure/mixedreality/authentication/_utils.py:32: [C4761(do-not-use-legacy-typing), retrieve_jwt_expiration_timestamp] Do not use legacy typing using comments.
2025-04-06T15:18:17.2531042Z azure/mixedreality/authentication/_utils.py:69: [C4761(do-not-use-legacy-typing), generate_cv_base] Do not use legacy typing using comments.
2025-04-06T15:18:17.2531479Z ************* Module azure.mixedreality.authentication._client
2025-04-06T15:18:17.2531935Z azure/mixedreality/authentication/_client.py:26: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2532507Z azure/mixedreality/authentication/_client.py:44: [C4761(do-not-use-legacy-typing), MixedRealityStsClient.init] Do not use legacy typing using comments.
2025-04-06T15:18:17.2533129Z azure/mixedreality/authentication/_client.py:86: [C4761(do-not-use-legacy-typing), MixedRealityStsClient.get_token] Do not use legacy typing using comments.
2025-04-06T15:18:17.2533688Z azure/mixedreality/authentication/_client.py:102: [C4761(do-not-use-legacy-typing), MixedRealityStsClient.close] Do not use legacy typing using comments.
2025-04-06T15:18:17.2534263Z azure/mixedreality/authentication/_client.py:106: [C4761(do-not-use-legacy-typing), MixedRealityStsClient.enter] Do not use legacy typing using comments.
2025-04-06T15:18:17.2534856Z azure/mixedreality/authentication/_client.py:111: [C4761(do-not-use-legacy-typing), MixedRealityStsClient.exit] Do not use legacy typing using comments.
2025-04-06T15:18:17.2535398Z ************* Module azure.mixedreality.authentication.aio._client_async
2025-04-06T15:18:17.2536105Z azure/mixedreality/authentication/aio/_client_async.py:89: [C4759(docstring-type-do-not-use-class), MixedRealityStsClient.get_token] "rtype" type formatted incorrectly. Do not use :class in docstring type. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T15:18:17.2537179Z ************* Module azure.mixedreality.authentication._shared.mixed_reality_token_credential
2025-04-06T15:18:17.2537787Z azure/mixedreality/authentication/_shared/mixed_reality_token_credential.py:13: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2538477Z azure/mixedreality/authentication/_shared/mixed_reality_token_credential.py:17: [C4761(do-not-use-legacy-typing), get_mixedreality_credential] Do not use legacy typing using comments.
2025-04-06T15:18:17.2539191Z azure/mixedreality/authentication/_shared/mixed_reality_token_credential.py:39: [C4761(do-not-use-legacy-typing), MixedRealityTokenCredential.init] Do not use legacy typing using comments.
2025-04-06T15:18:17.2540264Z azure/mixedreality/authentication/_shared/mixed_reality_token_credential.py:48: [C4761(do-not-use-legacy-typing), MixedRealityTokenCredential.get_token] Do not use legacy typing using comments.
2025-04-06T15:18:17.2541099Z ************* Module azure.mixedreality.authentication._shared.static_access_token_credential
2025-04-06T15:18:17.2541712Z azure/mixedreality/authentication/_shared/static_access_token_credential.py:10: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2542470Z azure/mixedreality/authentication/_shared/static_access_token_credential.py:21: [C4761(do-not-use-legacy-typing), StaticAccessTokenCredential.init] Do not use legacy typing using comments.
2025-04-06T15:18:17.2543273Z azure/mixedreality/authentication/_shared/static_access_token_credential.py:25: [C4761(do-not-use-legacy-typing), StaticAccessTokenCredential.get_token] Do not use legacy typing using comments.
2025-04-06T15:18:17.2543839Z ************* Module azure.mixedreality.authentication._shared.mixedreality_account_key_credential
2025-04-06T15:18:17.2544372Z azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py:15: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2545026Z azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py:26: [C4761(do-not-use-legacy-typing), MixedRealityAccountKeyCredential.init] Do not use legacy typing using comments.
2025-04-06T15:18:17.2545700Z azure/mixedreality/authentication/_shared/mixedreality_account_key_credential.py:31: [C4761(do-not-use-legacy-typing), MixedRealityAccountKeyCredential.get_token] Do not use legacy typing using comments.
2025-04-06T15:18:17.2546415Z ************* Module azure.mixedreality.authentication._shared.authentication_endpoint
2025-04-06T15:18:17.2546957Z azure/mixedreality/authentication/_shared/authentication_endpoint.py:7: [C4761(do-not-use-legacy-typing), construct_endpoint_url] Do not use legacy typing using comments.
2025-04-06T15:18:17.2547509Z ************* Module azure.mixedreality.authentication._shared.aio.mixed_reality_token_credential
2025-04-06T15:18:17.2548041Z azure/mixedreality/authentication/_shared/aio/mixed_reality_token_credential.py:12: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2548587Z ************* Module azure.mixedreality.authentication._shared.aio.static_access_token_credential
2025-04-06T15:18:17.2549128Z azure/mixedreality/authentication/_shared/aio/static_access_token_credential.py:10: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2549671Z ************* Module azure.mixedreality.authentication._shared.aio.mixedreality_account_key_credential
2025-04-06T15:18:17.2550231Z azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py:14: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T15:18:17.2550889Z azure/mixedreality/authentication/_shared/aio/mixedreality_account_key_credential.py:26: [C4761(do-not-use-legacy-typing), MixedRealityAccountKeyCredential.init] Do not use legacy typing using comments.
2025-04-06T15:18:17.2551242Z
2025-04-06T15:18:17.2551547Z -----------------------------------
2025-04-06T15:18:17.2551878Z Your code has been rated at 9.06/10
2025-04-06T15:18:17.2552065Z
2025-04-06T15:18:17.7980753Z

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

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Mixed RealityService AttentionWorkflow: This issue is responsible by Azure service team.pylint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions