Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: update ruff version

Wendong6cb00f5bc1e4
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 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: ruff
args: [--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: local
hooks:
- id: mypy
@@ -15,6 +17,7 @@ repos:
types: [python]
pass_filenames: false
require_serial: true
+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
- repo: local
hooks:
@@ -22,4 +25,5 @@ repos:
name: Check License
entry: python licenses/update_license.py . licenses/license_template.txt
language: system
- types: [python]
\ No newline at end of file
+ types: [python]
+ exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
diff --git a/test/models/test_model_manager.py b/test/models/test_model_manager.py
index 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 ChatCompletionSystemMessageParam
messages.append(msg)
model_manager = ModelManager(models, scheduling_strategy=strategy)