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

Update pre commit setting (#5)

Guohao Li02686b4719e0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7430dd794..2078b16ef 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,14 +1,19 @@
repos:
- repo: https://github.com/pre-commit/mirrors-yapf
- rev: v0.31.0
+ rev: v0.32.0
hooks:
- id: yapf
- args: [--style, "{based_on_style: google, column_limit: 120}"]
- - repo: https://github.com/pre-commit/mirrors-isort
- rev: v5.9.3
+ name: Format code
+ additional_dependencies: ["toml>=0.10.2"]
+
+ - repo: https://github.com/pycqa/isort
+ rev: 5.12.0
hooks:
- id: isort
- - repo: https://github.com/pycqa/flake8
- rev: '6.0.0'
+ name: Sort imports
+
+ - repo: https://github.com/PyCQA/flake8
+ rev: 4.0.1
hooks:
- - id: flake8
\ No newline at end of file
+ - id: flake8
+ name: Check PEP8
\ No newline at end of file
diff --git a/.style.yapf b/.style.yapf
new file mode 100644
index 000000000..f3765d4c2
--- /dev/null
+++ b/.style.yapf
@@ -0,0 +1,3 @@
+[style]
+based_on_style = pep8
+split_before_named_assigns = False