| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- [build-system]
- requires = ["setuptools>=75"]
- build-backend = "setuptools.build_meta"
- [project]
- name = "lq-agent-platform"
- version = "0.3"
- requires-python = ">=3.12"
- # dependencies 字段留空,依赖继续由 requirements.txt 管理
- # Dockerfile.base 依赖 requirements.txt 构建,不受影响
- [project.optional-dependencies]
- dev = [
- "pytest>=8",
- "pytest-asyncio",
- "pytest-cov",
- "pytest-xdist",
- "ruff>=0.8",
- "mypy>=1",
- ]
- [tool.setuptools.packages.find]
- where = ["."]
- include = ["server*", "views*", "core*", "foundation*", "config*"]
- [tool.pytest.ini_options]
- pythonpath = ["."]
- testpaths = ["utils_test"]
- markers = [
- "integration: 需要后端服务运行的集成测试",
- "slow: 耗时超过 10 秒的测试",
- "unit: 快速单元测试",
- ]
- [tool.ruff]
- target-version = "py312"
- line-length = 120
- [tool.ruff.lint]
- select = ["E", "F", "I", "N", "W", "UP", "SIM"]
- ignore = ["E501"]
- [tool.ruff.lint.isort]
- known-first-party = ["server", "views", "core", "foundation", "config"]
|