Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (62 loc) · 2.19 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (62 loc) · 2.19 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
[project]
name = "intelliops"
version = "0.0.0"
description = "Agentic AIOps for automated incident detection, diagnosis & remediation"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"pydantic>=2.9",
"pydantic-settings>=2.5",
"redis>=5.1",
"httpx>=0.28.1",
"prometheus-client>=0.20",
"sqlalchemy>=2.0",
"alembic>=1.13",
"psycopg[binary]>=3.1",
"kafka-python>=2.0.2",
"pyyaml>=6",
]
[project.optional-dependencies]
# torch is declared explicitly (it is otherwise transitive via sentence-transformers)
# so the CPU-only index pin below applies unambiguously. It is used for INFERENCE
# ONLY (sentence-transformers .encode for cosine fit) — no training/CUDA — so the
# CPU wheel is both correct and ~5GB smaller than the default CUDA build.
ml = ["numpy>=2", "scikit-learn>=1.9.0", "river>=0.25.0", "joblib>=1.5.3", "sentence-transformers>=3.0", "torch>=2.0"]
k8s = ["kubernetes>=29"]
# Pin torch to the CPU-only PyTorch wheel index (explicit → used ONLY for torch,
# generic deps still resolve from PyPI). This makes `uv sync --extra ml` pull the
# CPU build from the start, so no multi-GB CUDA wheels are ever downloaded.
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[dependency-groups]
dev = [
"pytest>=8.3",
"ruff>=0.7",
"fakeredis>=2.37.0",
"testcontainers[postgres]>=4.0",
"testcontainers[kafka]>=4.0",
"hypothesis>=6.0",
]
[tool.pytest.ini_options]
testpaths = ["tests", "common", "services"]
markers = [
"postgres: tests that require a real Postgres (testcontainers + Docker)",
"kafka: tests that require a real Kafka broker (testcontainers + Docker)",
]
filterwarnings = [
"ignore::starlette.exceptions.StarletteDeprecationWarning",
]
[tool.ruff]
line-length = 100
target-version = "py311"
# Docs hold illustrative Python inside Markdown fences; ruff's formatter would
# rewrite those snippets and fail `ruff format --check .` in CI. Design docs are
# not source — exclude them from both lint and format.
exclude = ["docs"]
[tool.setuptools.packages.find]
include = ["common*", "services*"]