fix: EXPECTED_API_KEY 改为惰性求值防加载顺序问题
This commit is contained in:
+12
-1
@@ -18,7 +18,7 @@ dependencies = [
|
||||
md-vector-db = "src.cli.main:app"
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8.0", "httpx>=0.27.0"]
|
||||
dev = ["pytest>=8.0", "httpx>=0.27.0", "pytest-cov>=5.0", "ruff>=0.8.0", "mypy>=1.13"]
|
||||
pdf = ["pymupdf>=1.24.0"]
|
||||
html = ["beautifulsoup4>=4.12.0"]
|
||||
epub = ["ebooklib>=0.18"]
|
||||
@@ -35,6 +35,17 @@ packages = ["src/"]
|
||||
find-links = ["D:/settings/Language/Python/库"]
|
||||
index-strategy = "unsafe-best-match"
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py313"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "N", "W"]
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.13"
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
pythonpath = ["src"]
|
||||
|
||||
Reference in New Issue
Block a user