forked from Mirrowel/LLM-API-Key-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (52 loc) · 1.3 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (52 loc) · 1.3 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
# SPDX-License-Identifier: MIT
# Copyright (c) 2026 b3nw
[project]
name = "llm-api-key-proxy"
version = "2.0.0"
requires-python = ">=3.12"
dependencies = [
"fastapi",
"uvicorn",
"python-dotenv",
"litellm",
"filelock",
"httpx",
"socksio",
"aiofiles",
"aiohttp",
"colorlog",
"rich",
"websockets>=14.0,<15.0",
"rotator-library",
]
[tool.uv.sources]
rotator-library = { path = "src/rotator_library", editable = true }
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"ruff>=0.15.14",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"unit: Pure logic tests, no I/O, no network (<1s each)",
"integration: Component interaction with mocked HTTP",
]
filterwarnings = [
"ignore::DeprecationWarning:litellm",
"ignore::UserWarning",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
# Critical rules enforced in pre-commit hook and CI:
# F401 — unused imports (often signals a missing import elsewhere)
# F811 — redefinition of unused name
# F821 — undefined name (would have caught `time` not imported)
# E9xx — runtime errors (syntax, IO errors detectable statically)
select = ["F401", "F811", "F821", "E9"]
ignore = []