pyproject.toml 1.03 KB
[project]
name = "aigc-embedding-service"
version = "0.1.0"
description = "基于向量的CRUD服务,支持多种Embedding场景"
requires-python = ">=3.12"
dependencies = [
    "fastapi==0.135.3",
    "uvicorn[standard]==0.42.0",
    "pydantic==2.12.5",
    "aabd==0.4.3",
    "path==17.1.1",
    "omegaconf==2.3.0",
    "elasticsearch>=9.3.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=8.3.0",
    "pytest-asyncio>=0.24.0",
    "black>=24.10.0",
    "ruff>=0.7.0",
    "mypy>=1.13.0",
]
es = [
    "elasticsearch==9.3.0",
]
postgres = [
    "psycopg[binary,pool]==3.3.3",
    "psycopg-pool==3.3.0",
]

[tool.black]
line-length = 100
target-version = ['py312']

[tool.ruff]
line-length = 100
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
ignore = ["E501"]

[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]