From 9e15a2ca6e9e88da9e21bd79a5d80fda3f63321f Mon Sep 17 00:00:00 2001 From: hongjiongteng Date: Sat, 22 Jul 2023 13:42:35 +0800 Subject: [PATCH] Update requirements to fix ModuleNotFoundError --- .pre-commit-config.yaml | 6 +++++- metagpt/roles/__init__.py | 8 ++++---- requirements.txt | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) 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