fix: EXPECTED_API_KEY 改为惰性求值防加载顺序问题

This commit is contained in:
2026-07-10 15:27:38 +08:00
parent 29bdfcfb18
commit ebfae1f60c
3 changed files with 18 additions and 12 deletions
+12 -1
View File
@@ -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"]