-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (65 loc) · 1.72 KB
/
pyproject.toml
File metadata and controls
75 lines (65 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mataserver"
version = "0.1.0"
description = "Inference runtime server for the MATA ecosystem"
requires-python = ">=3.10"
license = "MIT"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"numpy>=1.24.0,<2.0.0",
"opencv-python-headless>=4.8.0",
"pillow>=10.0.0",
"huggingface-hub>=0.20.0",
"httpx>=0.27.0",
"pyyaml>=6.0",
"nvidia-ml-py>=12.570.0",
"python-multipart>=0.0.9",
"timm>=0.9.0",
"scipy>=1.10.0",
"mata @ git+https://github.com/datamata-io/mata.git",
]
[project.optional-dependencies]
onnx = ["onnxruntime-gpu>=1.17.0"]
torch = ["torch>=2.0.0", "torchvision>=0.15.0"]
all = ["mataserver[onnx,torch]"]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
"httpx",
"ruff>=0.4.0",
]
[project.scripts]
mataserver = "mataserver.main:cli"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.ruff.lint.per-file-ignores]
"examples/**" = ["E501"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.coverage.run]
source = ["mataserver"]
omit = [
# Legacy pull strategy classes — replaced by snapshot_download(); kept for compat
"mataserver/models/pull/hf.py",
"mataserver/models/pull/local.py",
"mataserver/models/pull/url.py",
# Engine stubs — placeholder files, no implementation to test
"mataserver/engines/onnx_engine.py",
"mataserver/engines/pytorch_engine.py",
]
[tool.coverage.report]
fail_under = 85
show_missing = true