Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 committed Jun 19, 2024
1 parent 9fdbcdc commit 66a3af4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ temp
.test_results
.trunk
refactor_debug.ipynb

**/coder_agent_logs_*
**/.composio.coder.*
4 changes: 2 additions & 2 deletions coders/composio_coders/swe.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def run(self):
Action.LOCALWORKSPACE_CREATEWORKSPACEACTION, {}
)
workspace_id = workspace_create_resp.workspace_id
logger.info(f"workspace is created, workspace-id is: {workspace_id}")
logger.info("workspace is created, workspace-id is: %s", workspace_id)
git_clone_response = self.entity.execute(
Action.CMDMANAGERTOOL_GITHUBCLONECMD,
params={
Expand All @@ -239,7 +239,7 @@ def run(self):
repo_name_dir="/" + self.repo_name.split("/")[-1].strip(),
base_commit=self.issue_config.base_commit_id,
)
logger.info(f"git clone response: {git_clone_response}")
logger.info("git clone response: %s", git_clone_response)

swe_agent = Agent(
role=self.agent_role,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing as t
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Optional

from pydantic import BaseModel, Field

Expand Down Expand Up @@ -36,7 +36,7 @@ class BaseResponse(BaseModel):
class Config:
arbitrary_types_allowed = True

output: any = Field(..., description="output of the command")
output: t.Any = Field(..., description="output of the command")
return_code: int = Field(
..., description="Any output or errors that occurred during the file edit."
)
Expand All @@ -53,8 +53,8 @@ class BaseAction(Action[BaseRequest, BaseResponse], ABC):
_tool_name = "cmdmanagertool"
script_file = ""
command = ""
workspace_factory: Optional[WorkspaceManagerFactory] = None
history_processor: Optional[HistoryProcessor] = None
workspace_factory: t.Optional[WorkspaceManagerFactory] = None
history_processor: t.Optional[HistoryProcessor] = None

def __init__(self):
super().__init__()
Expand Down

0 comments on commit 66a3af4

Please sign in to comment.