Skip to content

Commit 2e1701b

Browse files
author
Shreyas-Microsoft
committed
fix pylint
1 parent 737342e commit 2e1701b

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/backend/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
from dotenv import load_dotenv
1010

11-
from helper.azure_credential_utils import get_azure_credential_async, get_azure_credential
12-
1311
from fastapi import FastAPI
1412
from fastapi.middleware.cors import CORSMiddleware
1513

14+
from helper.azure_credential_utils import get_azure_credential
15+
1616
from semantic_kernel.agents.azure_ai.azure_ai_agent import AzureAIAgent # pylint: disable=E0611
1717

1818
from sql_agents.agent_manager import clear_sql_agents, set_sql_agents

src/backend/common/config/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import os
1616

1717
from azure.identity.aio import ClientSecretCredential
18+
1819
from helper.azure_credential_utils import get_azure_credential
1920

2021

src/backend/common/storage/blob_azure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
from azure.storage.blob import BlobServiceClient
44

5+
from common.config.config import app_config
56
from common.logger.app_logger import AppLogger
67
from common.storage.blob_base import BlobStorageBase
8+
79
from helper.azure_credential_utils import get_azure_credential
810

9-
from common.config.config import app_config
1011

1112
class AzureBlobStorage(BlobStorageBase):
1213
def __init__(self, account_name: str, container_name: Optional[str] = None):

src/backend/helper/azure_credential_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
2-
from azure.identity import ManagedIdentityCredential, DefaultAzureCredential
3-
from azure.identity.aio import ManagedIdentityCredential as AioManagedIdentityCredential, DefaultAzureCredential as AioDefaultAzureCredential
2+
3+
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
4+
from azure.identity.aio import DefaultAzureCredential as AioDefaultAzureCredential, ManagedIdentityCredential as AioManagedIdentityCredential
45

56

67
async def get_azure_credential_async(client_id=None):
@@ -33,4 +34,4 @@ def get_azure_credential(client_id=None):
3334
if os.getenv("APP_ENV", "prod").lower() == 'dev':
3435
return DefaultAzureCredential() # CodeQL [SM05139] Okay use of DefaultAzureCredential as it is only used in development
3536
else:
36-
return ManagedIdentityCredential(client_id=client_id)
37+
return ManagedIdentityCredential(client_id=client_id)

0 commit comments

Comments
 (0)