Skip to content

Commit

Permalink
Fix style check and test actions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfrench authored Nov 16, 2023
1 parent b8c627e commit 052c56a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ A Github template repository for creating Griptape tools.

## Usage

This template repository defines the typical structure for a Griptape tool and is meant to be used as a starting point when developing new tools. To use this template, click the "Use this template" button at the top of the repository.
This template repository defines the typical structure for a Griptape tool and is meant to be used as a starting point when developing new tools. To create a tool using this template, click the **"Use this template"** button at the top of the repository.

### Steps for creating a new Griptape tool:

1. Add your tool's logic to `tool.py`
2. Add tests in the `tests` directory
3. Add examples in the `examples` directory
2. Add tests in the `tests/` directory
3. Add examples in the `examples/` directory
4. Update the contents of `manifest.yml` with the name and description of your tool along with your contact information
5. Rewrite this `README.md` with information about your new tool
6. Choose the appropriate license (and update the `LICENSE` file if necessary)
Expand Down
8 changes: 1 addition & 7 deletions reverse_string_tool/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ class ReverseStringTool(BaseTool):
@activity(
config={
"description": "Can be used to reverse a string",
"schema": Schema(
{
Literal(
"input", description="The string to be reversed"
): str
}
),
"schema": Schema({Literal("input", description="The string to be reversed"): str}),
}
)
def reverse_string(self, params: dict) -> TextArtifact | ErrorArtifact:
Expand Down
Empty file added tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_reverse_string_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from reverse_string_tool import ReverseStringTool


class TestReverseString:
class TestReverseStringTool:
def test_reverse_string(self):
value = "some_value"

Expand Down

0 comments on commit 052c56a

Please sign in to comment.