Skip to content

Commit 6b2229d

Browse files
committed
fix: Apply ruff formatting to deepagent.py
- Fixed code formatting issues in src/agents/deepagent.py using ruff format - All 53 files now pass ruff format --check - All 78 unit tests continue to pass - mypy static analysis still passes (53 source files) - ruff linting passes with no issues Resolves static code analysis CI failure: 'Would reformat: src/agents/deepagent.py'
1 parent 1c73da6 commit 6b2229d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/agents/deepagent.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ def invoke(self, input_data: dict, config: dict):
172172
for tool in self.tools:
173173
if tool.name == "DiagramParserTool":
174174
# Extract file path from prompt (simple parsing)
175-
match = re.search(r"\'(.*?)\'", self.last_input) if self.last_input else None
175+
match = (
176+
re.search(r"\'(.*?)\'", self.last_input)
177+
if self.last_input
178+
else None
179+
)
176180
if match:
177181
file_path = match.group(1)
178182
return {"output": tool._run(file_path)}

0 commit comments

Comments
 (0)