Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

update requirements to fix ModuleNotFoundError

hongjiongtenga62c07dc22fe
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7684516ba..574ff87dc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
"--show-source",
"--count",
"--statistics",
- "--extend-ignore=E203,E402,C901,E501,E101,E266,E731,W291,F821,W191",
+ "--extend-ignore=E203,E402,C901,E501,E101,E266,E731,W291,F821,W191,E122,E125,E127,E128,W293",
"--per-file-ignores=__init__.py:F401",
] # when necessary, ignore errors, https://flake8.pycqa.org/en/latest/user/error-codes.html
exclude: ^venv/ # exclude dir, e.g. (^foo/|^bar/)
@@ -20,3 +20,7 @@ repos:
hooks:
- id: isort
args: ['--profile', 'black']
+ exclude: >-
+ (?x)^(
+ .*__init__\.py$
+ )
diff --git a/metagpt/roles/__init__.py b/metagpt/roles/__init__.py
index 46f9d727b..b1911df06 100644
--- a/metagpt/roles/__init__.py
+++ b/metagpt/roles/__init__.py
@@ -6,12 +6,12 @@
@File : __init__.py
"""
+from metagpt.roles.role import Role
from metagpt.roles.architect import Architect
-from metagpt.roles.customer_service import CustomerService
-from metagpt.roles.engineer import Engineer
from metagpt.roles.product_manager import ProductManager
from metagpt.roles.project_manager import ProjectManager
+from metagpt.roles.engineer import Engineer
from metagpt.roles.qa_engineer import QaEngineer
-from metagpt.roles.role import Role
-from metagpt.roles.sales import Sales
from metagpt.roles.seacher import Searcher
+from metagpt.roles.sales import Sales
+from metagpt.roles.customer_service import CustomerService
diff --git a/requirements.txt b/requirements.txt
index bb53aedfe..a561a553b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -29,3 +29,4 @@ tenacity==8.2.2
tiktoken==0.3.3
tqdm==4.64.0
#unstructured[local-inference]
+anthropic==0.3.6