Files
lincodex/ml/pyproject.toml
T

67 lines
1.4 KiB
TOML

[project]
name = "lincodex-ml"
version = "0.1.0"
description = "Operational scaffold for the Lincodex ML service"
requires-python = ">=3.14,<3.15"
dependencies = [
"fastapi==0.142.2",
"numpy==2.5.3",
"prometheus-client==0.26.0",
"pydantic==2.13.5",
"safetensors==0.8.0",
"tokenizers==0.23.3",
"torch==2.11.0",
"transformers==5.19.0",
"uvicorn[standard]==0.54.0",
]
[dependency-groups]
dev = [
"datamodel-code-generator==0.83.0",
"hatchling==1.32.4",
"httpx==0.28.1",
"mypy==2.4.0",
"pytest==9.1.1",
"pyyaml==6.0.3",
"ruff==0.16.10",
]
[build-system]
requires = ["hatchling==1.32.4"]
build-backend = "hatchling.build"
[tool.uv]
required-version = "==0.12.22"
# CPU-only PyTorch wheels: the default index resolves Linux torch with CUDA
# libraries of several gigabytes that a CPU host never uses.
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[tool.hatch.build.targets.wheel]
packages = ["src/lincodex_ml"]
[tool.ruff]
line-length = 100
target-version = "py314"
src = ["src"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "B", "UP", "ASYNC", "RUF"]
[tool.mypy]
python_version = "3.14"
strict = true
mypy_path = "src"
files = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -m 'not slow'"
markers = ["slow: needs the pinned model weights in ML_MODEL_DIR (make test-model)"]