-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (60 loc) · 1.49 KB
/
pyproject.toml
File metadata and controls
70 lines (60 loc) · 1.49 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
[project]
name = "stihia-librechat"
dynamic = ["version"]
requires-python = ">=3.12"
description = "Stihia AI security proxy for LibreChat — transparent HTTP proxy with real-time threat detection"
dependencies = [
"fastapi",
"uvicorn[standard]",
"gunicorn",
"pydantic-settings",
"httpx",
"stihia",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"respx>=0.21",
"ruff>=0.8",
"mypy>=1.13",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
fallback-version = "0"
[tool.hatch.build.targets.wheel]
packages = ["src/stihia_librechat"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.uv]
# reject packages published less than 7 days ago, to avoid security risks
exclude-newer = "7 days"
# exempt our own package from the age restriction
exclude-newer-package = { stihia = "2100-01-01" }
[tool.ruff]
target-version = "py312"
line-length = 120
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific
]
[tool.ruff.lint.isort]
known-first-party = ["stihia"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true