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

Setup pre-commit hook

lightaime337daddafbc9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 000000000..7430dd794
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,14 @@
+repos:
+ - repo: https://github.com/pre-commit/mirrors-yapf
+ rev: v0.31.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
+ hooks:
+ - id: isort
+ - repo: https://github.com/pycqa/flake8
+ rev: '6.0.0'
+ hooks:
+ - id: flake8
\ No newline at end of file
diff --git a/install_env.sh b/install_env.sh
index cc8247ab0..2e47f4dff 100644
--- a/install_env.sh
+++ b/install_env.sh
@@ -1,2 +1,4 @@
conda create --name camel python=3.10
-conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
\ No newline at end of file
+conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
+pip install -r requirements.txt
+pre-commit install
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index 3e330669c..bf5816828 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,12 +1,8 @@
numpy
-rouge_score
-fire
openai
-transformers>=4.26.1
-sentencepiece
-tokenizers==0.12.1
-wandb
tenacity
tiktoken
-flake8
yapf
+isort
+flake8
+pre-commit
\ No newline at end of file