From 38ca2edb41a94019b0a58c52c8280b78c0bd57ab Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Sun, 9 Jun 2024 14:10:09 +0800 Subject: [PATCH] =?UTF-8?q?dotenv=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/chatchat-server/pyproject.toml | 2 +- libs/model-providers/pyproject.toml | 2 +- pyproject.toml | 16 ++++++++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/libs/chatchat-server/pyproject.toml b/libs/chatchat-server/pyproject.toml index d667add1..f9adff8d 100644 --- a/libs/chatchat-server/pyproject.toml +++ b/libs/chatchat-server/pyproject.toml @@ -256,7 +256,7 @@ ignore-words-list = 'momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogy [tool.poetry.plugins.dotenv] ignore = "false" -location = ".env" +dotenv = "dotenv:plugin" # https://python-poetry.org/docs/repositories/ diff --git a/libs/model-providers/pyproject.toml b/libs/model-providers/pyproject.toml index b525a717..14976752 100644 --- a/libs/model-providers/pyproject.toml +++ b/libs/model-providers/pyproject.toml @@ -206,7 +206,7 @@ ignore-words-list = 'momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogy [tool.poetry.plugins.dotenv] ignore = "false" -location = ".env" +dotenv = "dotenv:plugin" # https://python-poetry.org/docs/repositories/ [[tool.poetry.source]] diff --git a/pyproject.toml b/pyproject.toml index 07a601cc..23009743 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,19 @@ langchain-chatchat = { path = "libs/chatchat-server", develop = true } ipykernel = "^6.29.2" [tool.poetry.group.test.dependencies] - +pytest = "^7.3.0" +pytest-cov = "^4.0.0" +pytest-dotenv = "^0.5.2" +duckdb-engine = "^0.9.2" +pytest-watcher = "^0.2.6" +freezegun = "^1.2.2" +responses = "^0.22.0" +pytest-asyncio = "^0.23.2" +lark = "^1.1.5" +pytest-mock = "^3.10.0" +pytest-socket = "^0.6.0" +syrupy = "^4.0.2" +requests-mock = "^1.11.0" [tool.ruff] extend-include = ["*.ipynb"] @@ -48,7 +60,7 @@ extend-exclude = [ [tool.poetry.plugins.dotenv] ignore = "false" -location = ".env" +dotenv = "dotenv:plugin" # https://python-poetry.org/docs/repositories/