🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: update ruff version
Wendong6cb00f5bc1e4
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex f8adc2e1e..c091d5d6b 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -1,11 +1,13 @@repos:- repo: https://github.com/astral-sh/ruff-pre-commit- rev: 'v0.7'+ rev: 'v0.7.4'hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix, --show-fixes]+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks- id: ruff-format-+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks+- repo: localhooks:- id: mypy@@ -15,6 +17,7 @@ repos:types: [python]pass_filenames: falserequire_serial: true+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks- repo: localhooks:@@ -22,4 +25,5 @@ repos:name: Check Licenseentry: python licenses/update_license.py . licenses/license_template.txtlanguage: system- types: [python]\ No newline at end of file+ types: [python]+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooksdiff --git a/test/models/test_model_manager.py b/test/models/test_model_manager.pyindex 8ed79678b..0027e4d4d 100644--- a/test/models/test_model_manager.py+++ b/test/models/test_model_manager.py@@ -49,12 +49,12 @@ def test_model_manager()if TYPE_CHECKING:- assert type(models) == List[BaseModelBackend]+ assert type(models) is List[BaseModelBackend]messages: List = []for _ in range(calls_count):msg = "message"if TYPE_CHECKING:- assert type(msg) == ChatCompletionSystemMessageParam+ assert type(msg) is ChatCompletionSystemMessageParammessages.append(msg)model_manager = ModelManager(models, scheduling_strategy=strategy)