-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (77 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (77 loc) · 2.28 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[project]
name = "inference-proxy"
version = "0.1.0"
description = "QUADS LLM Inference Proxy - routes requests to vLLM nodes"
requires-python = ">=3.12,<3.14"
dependencies = [
"fastapi>=0.135,<1.0",
"uvicorn[standard]>=0.45",
"pydantic>=2.10,<3.0",
"pydantic-settings>=2.14",
"structlog>=26.1.0",
# The raw watch, revision, and lease adapter is exercised against this floor.
"etcd3gw>=2.7.0",
"httpx>=0.28,<1.0",
"httpx-sse>=0.4.3",
"jinja2>=3.1",
"asyncssh>=2.20,<3.0",
"huggingface-hub>=1.25,<2.0",
"authlib>=1.3,<2.0",
"itsdangerous>=2.1,<3.0",
"pyyaml>=6.0",
]
[dependency-groups]
dev = [
"ruff>=0.15",
"mypy>=2.1",
"pytest>=8.0",
"pytest-asyncio>=1.4",
"pytest-httpx>=0.36",
"httpx2>=2.7,<3.0",
"coverage>=7.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.coverage.run]
branch = true
source = ["inference_proxy"]
[tool.coverage.report]
fail_under = 92
precision = 2
show_missing = true
[tool.ruff]
target-version = "py312"
line-length = 88
extend-exclude = ["*.md"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "N"]
# Ruff's formatter intentionally leaves long strings and comments intact.
ignore = ["E501"]
[tool.ruff.lint.flake8-bugbear]
# FastAPI dependency declarations are intentionally evaluated as defaults.
extend-immutable-calls = ["fastapi.Depends"]
[tool.ruff.lint.per-file-ignores]
# Keep the existing str/Enum stringification contract for API values.
"inference_proxy/models/admin.py" = ["UP042"]
# Test settings must be installed before importing the application.
"tests/conftest.py" = ["E402"]
# Nested patch contexts keep the setup readable in this legacy test module.
"tests/provisioning/test_provisioner.py" = ["SIM117"]
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
# authlib ships no type stubs; its public API is exercised through a thin
# integration layer (plugins/builtin/auth/google.py) that keeps the
# untyped surface minimal.
module = ["authlib.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# PyYAML ships no type stubs; only safe_load/compose/safe_dump are used.
module = ["yaml"]
ignore_missing_imports = true