pyproject.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [project]
  2. name = "zhibaotong-s2-backend"
  3. version = "0.2.0"
  4. description = "智保通第二阶段知识服务与数据分析统一后端"
  5. requires-python = ">=3.12,<3.13"
  6. dependencies = [
  7. "alembic>=1.16,<2",
  8. "asyncmy>=0.2,<1",
  9. "fastapi>=0.116,<1",
  10. "httpx>=0.28,<1",
  11. "pydantic>=2.11,<3",
  12. "pydantic-settings>=2.10,<3",
  13. "pwdlib[argon2]>=0.2,<1",
  14. "pyjwt[crypto]>=2.10,<3",
  15. "redis>=6,<8",
  16. "sqlalchemy>=2.0,<3",
  17. "ulid-py>=1.1,<2",
  18. "uvicorn[standard]>=0.35,<1",
  19. "pymysql>=1.1,<2",
  20. "langchain>=1.0,<2",
  21. "langchain-openai>=1.0,<2",
  22. "langsmith>=0.4,<1",
  23. "pymilvus>=2.6,<3",
  24. "flagembedding>=1.3,<2",
  25. "transformers>=4.44.2,<5",
  26. "python-multipart>=0.0.20,<1",
  27. "pypdf>=6,<7",
  28. "pillow>=11,<13",
  29. ]
  30. [build-system]
  31. requires = ["hatchling>=1.27,<2"]
  32. build-backend = "hatchling.build"
  33. [dependency-groups]
  34. dev = [
  35. "coverage[toml]>=7.9,<8",
  36. "mypy>=1.16,<2",
  37. "pytest>=8.4,<10",
  38. "pytest-asyncio>=1.0,<2",
  39. "ruff>=0.12,<1",
  40. "types-pymysql>=1.1,<2",
  41. ]
  42. [tool.uv]
  43. package = true
  44. [[tool.uv.index]]
  45. url = "https://mirrors.aliyun.com/pypi/simple/"
  46. default = true
  47. [tool.hatch.build.targets.wheel]
  48. packages = ["src/zbt"]
  49. [tool.pytest.ini_options]
  50. addopts = "-q"
  51. testpaths = ["tests"]
  52. [tool.ruff]
  53. line-length = 100
  54. target-version = "py312"
  55. [tool.ruff.lint]
  56. select = ["E", "F", "I", "UP", "B", "SIM"]
  57. [tool.mypy]
  58. python_version = "3.12"
  59. strict = true
  60. plugins = ["pydantic.mypy"]