Skip to content

Commit

Permalink
fix: format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shreysingla11 committed Sep 17, 2024
1 parent 42798ba commit 5de49db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ def execute(self, request: GetPatchRequest, metadata: t.Dict) -> GetPatchRespons
cmd = ["git add -u"]
if len(request.new_file_path) > 0:
cmd = [f"git add {new_files}", "git add -u"]
cmd.append(
"""
git diff --cached -- . \
':!**/test*/**' \
':!**/tests/**' \
':!**/*test*.*' \
':!**/spec/**' \
':!**/*spec*.*'
""".strip()
)

output = self.shells.get(request.shell_id).exec(cmd=" && ".join(cmd))
return GetPatchResponse(
stdout=output[STDOUT],
Expand Down
13 changes: 1 addition & 12 deletions python/composio/tools/local/shelltool/shell_exec/actions/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@

from composio.tools.base.local import LocalAction
from composio.tools.env.constants import STDERR, STDOUT


class ShellRequest(BaseModel):
"""Shell request abstraction."""

shell_id: str = Field(
default="",
description=(
"ID of the shell where this command will be executed, if not "
"provided the recent shell will be used to execute the action"
),
)
from composio.tools.local.shelltool.shell_exec.actions.exec import ShellRequest


class TestExecRequest(ShellRequest):
Expand Down

0 comments on commit 5de49db

Please sign in to comment.