pyproject.toml 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [build-system]
  2. requires = ["setuptools>=75"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "lq-agent-platform"
  6. version = "0.3"
  7. requires-python = ">=3.12"
  8. # dependencies 字段留空,依赖继续由 requirements.txt 管理
  9. # Dockerfile.base 依赖 requirements.txt 构建,不受影响
  10. [project.optional-dependencies]
  11. dev = [
  12. "pytest>=8",
  13. "pytest-asyncio",
  14. "pytest-cov",
  15. "pytest-xdist",
  16. "ruff>=0.8",
  17. "mypy>=1",
  18. ]
  19. [tool.setuptools.packages.find]
  20. where = ["."]
  21. include = ["server*", "views*", "core*", "foundation*", "config*"]
  22. [tool.pytest.ini_options]
  23. pythonpath = ["."]
  24. testpaths = ["utils_test"]
  25. markers = [
  26. "integration: 需要后端服务运行的集成测试",
  27. "slow: 耗时超过 10 秒的测试",
  28. "unit: 快速单元测试",
  29. ]
  30. [tool.ruff]
  31. target-version = "py312"
  32. line-length = 120
  33. [tool.ruff.lint]
  34. select = ["E", "F", "I", "N", "W", "UP", "SIM"]
  35. ignore = ["E501"]
  36. [tool.ruff.lint.isort]
  37. known-first-party = ["server", "views", "core", "foundation", "config"]