Skip to content

Commit b170dc1

Browse files
fix: pylint fixes
1 parent e74f4cb commit b170dc1

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
max-line-length = 88
33
extend-ignore = E501
44
exclude = .venv, frontend
5-
ignore = E203, W503, G004, G200,B008,ANN,D
5+
ignore = E203, W503, G004, G200,B008,ANN,D100,D101,D102,D103,D104,D105,D106,D107,D205,D400,D401,D200

src/backend/sql_agents/helpers/agents_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def __init__(self):
3333
@classmethod
3434
async def create(cls, config: AgentBaseConfig):
3535
"""Create the SQL agents for migration.
36-
Required as init cannot be async"""
36+
Required as init cannot be async
37+
"""
3738
self = cls() # Create an instance
3839
try:
3940
self.agent_config = config
@@ -71,7 +72,7 @@ def idx_agents(self):
7172
}
7273

7374
async def delete_agents(self):
74-
"""cleans up the agents from Azure Foundry"""
75+
"""Cleans up the agents from Azure Foundry"""
7576
try:
7677
for agent in self.agents:
7778
await self.agent_config.ai_project_client.agents.delete_agent(agent.id)

src/backend/sql_agents/helpers/comms_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class SelectionStrategy(SequentialSelectionStrategy):
2020

2121
# Select the next agent that should take the next turn in the chat
2222
async def select_agent(self, agents, history):
23-
""" "Check which agent should take the next turn in the chat."""
24-
23+
"""Check which agent should take the next turn in the chat."""
2524
match history[-1].name:
2625
case AgentType.MIGRATOR.value:
2726
# The Migrator should go first

src/backend/sql_agents/process_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
async def process_batch_async(
4343
batch_id: str, convert_from: str = "informix", convert_to: str = "tsql"
4444
):
45-
"""central batch processing function to process each file in the batch"""
45+
"""Central batch processing function to process each file in the batch"""
4646
logger.info("Processing batch: %s", batch_id)
4747
storage = await BlobStorageFactory.get_storage()
4848
batch_service = BatchService()
@@ -160,7 +160,7 @@ async def process_batch_async(
160160
async def process_error(
161161
ex: Exception, file_record: FileRecord, batch_service: BatchService
162162
):
163-
"""insert data base write to file record stating invalid file and send ws notification"""
163+
"""Insert data base write to file record stating invalid file and send ws notification"""
164164
await batch_service.create_file_log(
165165
file_id=str(file_record.file_id),
166166
description=f"Error processing file {ex}",

0 commit comments

Comments
 (0)