mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
Feat: Add Ruff to improve linting/formatting (#588)
* fix: fix test actually running * fix: fix test to not send request to openai * fix: fix linting to remove cli files * fix: exclude only files that breaks black * fix: Fix all Ruff checkings on the code and Fix Test with repeated name * fix: Change linter name on yml file * feat: update pre-commit * feat: remove need for isort on the code * feat: remove black linter * feat: update tests yml to try to fix the tests gh action
This commit is contained in:
committed by
GitHub
parent
04b4191de5
commit
aeba64feaf
@@ -31,8 +31,8 @@ def test_agent_default_values():
|
||||
assert isinstance(agent.llm, ChatOpenAI)
|
||||
assert agent.llm.model_name == "gpt-4"
|
||||
assert agent.llm.temperature == 0.7
|
||||
assert agent.llm.verbose == False
|
||||
assert agent.allow_delegation == True
|
||||
assert agent.llm.verbose is False
|
||||
assert agent.allow_delegation is True
|
||||
|
||||
|
||||
def test_custom_llm():
|
||||
@@ -751,7 +751,7 @@ def test_agent_definition_based_on_dict():
|
||||
assert agent.role == "test role"
|
||||
assert agent.goal == "test goal"
|
||||
assert agent.backstory == "test backstory"
|
||||
assert agent.verbose == True
|
||||
assert agent.verbose is True
|
||||
assert agent.tools == []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user