Skip to content

Commit eea319d

Browse files
author
Shreyas-Microsoft
committed
fix pylint errors
1 parent 15357df commit eea319d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/backend/common/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def get_azure_credentials(self):
6363

6464

6565
app_config = Config()
66-
print(f"[DEBUG] AI_PROJECT_ENDPOINT: '{os.getenv('AI_PROJECT_ENDPOINT')}'")
66+
print(f"[DEBUG] AI_PROJECT_ENDPOINT: '{os.getenv('AI_PROJECT_ENDPOINT')}'")

src/backend/sql_agents/agents/agent_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ async def execute(self, inputs: Any) -> T:
151151
"""Execute the agent with the given inputs."""
152152
agent = await self.get_agent()
153153
response = await agent.invoke(inputs)
154-
return response # Type will be inferred from T
154+
return response # Type will be inferred from T

src/backend/sql_agents/process_batch.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from azure.identity.aio import DefaultAzureCredential
1313

14+
from common.config.config import app_config
1415
from common.models.api import (
1516
FileProcessUpdate,
1617
FileRecord,
@@ -20,11 +21,11 @@
2021
)
2122
from common.services.batch_service import BatchService
2223
from common.storage.blob_factory import BlobStorageFactory
23-
from common.config.config import app_config
24+
2425
from fastapi import HTTPException
2526

2627

27-
from semantic_kernel.agents.azure_ai.azure_ai_agent import AzureAIAgent, AzureAIAgentSettings # pylint: disable=E0611
28+
from semantic_kernel.agents.azure_ai.azure_ai_agent import AzureAIAgent # pylint: disable=E0611
2829
from semantic_kernel.contents import AuthorRole
2930
from semantic_kernel.exceptions.service_exceptions import ServiceResponseException
3031

@@ -37,6 +38,7 @@
3738
logger = logging.getLogger(__name__)
3839
logger.setLevel(logging.DEBUG)
3940

41+
4042
# Walk through batch structure processing each file
4143
async def process_batch_async(
4244
batch_id: str, convert_from: str = "informix", convert_to: str = "tsql"
@@ -56,7 +58,6 @@ async def process_batch_async(
5658
except Exception as exc:
5759
logger.error("Error updating batch status. %s", exc)
5860

59-
ai_agent_settings = AzureAIAgentSettings()
6061
# Add client and auto cleanup
6162
async with (
6263
DefaultAzureCredential() as creds,

0 commit comments

Comments
 (0)