pyproject.toml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [project]
  2. name = "zhibaotong-s1-backend"
  3. version = "0.1.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. ]
  24. [build-system]
  25. requires = ["hatchling>=1.27,<2"]
  26. build-backend = "hatchling.build"
  27. [dependency-groups]
  28. dev = [
  29. "coverage[toml]>=7.9,<8",
  30. "mypy>=1.16,<2",
  31. "pytest>=8.4,<10",
  32. "pytest-asyncio>=1.0,<2",
  33. "ruff>=0.12,<1",
  34. "types-pymysql>=1.1,<2",
  35. ]
  36. [tool.uv]
  37. package = true
  38. [[tool.uv.index]]
  39. url = "https://mirrors.aliyun.com/pypi/simple/"
  40. default = true
  41. [tool.hatch.build.targets.wheel]
  42. packages = ["src/zbt"]
  43. [tool.pytest.ini_options]
  44. addopts = "-q"
  45. testpaths = ["tests"]
  46. [tool.ruff]
  47. line-length = 100
  48. target-version = "py312"
  49. [tool.ruff.lint]
  50. select = ["E", "F", "I", "UP", "B", "SIM"]
  51. [tool.mypy]
  52. python_version = "3.12"
  53. strict = true
  54. plugins = ["pydantic.mypy"]