mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 15:52:34 +00:00
feat: run ruff format
This commit is contained in:
@@ -276,7 +276,13 @@ def tool_install(handle: str):
|
|||||||
|
|
||||||
|
|
||||||
@tool.command(name="publish")
|
@tool.command(name="publish")
|
||||||
@click.option("--force", is_flag=True, show_default=True, default=False, help="Bypasses Git remote validations")
|
@click.option(
|
||||||
|
"--force",
|
||||||
|
is_flag=True,
|
||||||
|
show_default=True,
|
||||||
|
default=False,
|
||||||
|
help="Bypasses Git remote validations",
|
||||||
|
)
|
||||||
@click.option("--public", "is_public", flag_value=True, default=False)
|
@click.option("--public", "is_public", flag_value=True, default=False)
|
||||||
@click.option("--private", "is_public", flag_value=False)
|
@click.option("--private", "is_public", flag_value=False)
|
||||||
def tool_publish(is_public: bool, force: bool):
|
def tool_publish(is_public: bool, force: bool):
|
||||||
|
|||||||
@@ -15,7 +15,10 @@ class EntityMemory(Memory):
|
|||||||
storage
|
storage
|
||||||
if storage
|
if storage
|
||||||
else RAGStorage(
|
else RAGStorage(
|
||||||
type="entities", allow_reset=False, embedder_config=embedder_config, crew=crew
|
type="entities",
|
||||||
|
allow_reset=False,
|
||||||
|
embedder_config=embedder_config,
|
||||||
|
crew=crew,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
super().__init__(storage)
|
super().__init__(storage)
|
||||||
|
|||||||
@@ -276,7 +276,9 @@ def test_cache_hitting():
|
|||||||
"multiplier-{'first_number': 12, 'second_number': 3}": 36,
|
"multiplier-{'first_number': 12, 'second_number': 3}": 36,
|
||||||
}
|
}
|
||||||
|
|
||||||
with patch.object(CacheHandler, "read") as read, patch.object(Emitter, "emit") as emit:
|
with patch.object(CacheHandler, "read") as read, patch.object(
|
||||||
|
Emitter, "emit"
|
||||||
|
) as emit:
|
||||||
read.return_value = "0"
|
read.return_value = "0"
|
||||||
task = Task(
|
task = Task(
|
||||||
description="What is 2 times 6? Ignore correctness and just return the result of the multiplication tool, you must use the tool.",
|
description="What is 2 times 6? Ignore correctness and just return the result of the multiplication tool, you must use the tool.",
|
||||||
|
|||||||
Reference in New Issue
Block a user