Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (125 loc) · 3.71 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (125 loc) · 3.71 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "netopsbench"
version = "0.2.0"
description = "DCN Fault Troubleshooting Benchmark System"
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [{ name = "NetOpsBench Team" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"requests>=2.25.0",
"pyyaml>=5.4.0",
"pydantic>=2.0.0",
"harbor>=0.13.1,<0.14",
]
[project.urls]
Source = "https://github.com/NetX-lab/NetOpsBench"
Issues = "https://github.com/NetX-lab/NetOpsBench/issues"
[project.scripts]
netopsbench = "netopsbench.cli.main:main"
netopsbench-bgp-collector = "netopsbench.platform.observability.bgp_collector:main"
netopsbench-mcp-server = "netopsbench.platform.toolkit.fastmcp_server:main"
netopsbench-runtime = "netopsbench.platform.runtime.cli:main"
netopsbench-simulator = "netopsbench.sdk.simulator_service:main"
[project.optional-dependencies]
agent = [
"openai>=1.0.0",
"deepagents>=0.0.12",
"langchain>=0.3.0",
"langchain-openai>=0.2.0",
"langchain-mcp-adapters>=0.1.0",
"langsmith>=0.3.0",
"fastmcp>=2.0.0",
"json-repair>=0.54.0",
]
plots = [
"matplotlib>=3.8.0",
]
simulator = [
"fastapi>=0.115.0",
"uvicorn>=0.30.0",
]
dev = [
"pytest>=6.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"matplotlib>=3.8.0",
"black>=24.0.0",
"ruff>=0.4.0",
"isort>=5.13.0",
"mypy>=1.8.0",
"pre-commit>=3.5.0",
"httpx>=0.27.0",
]
[tool.setuptools.packages.find]
include = ["netopsbench*"]
[tool.setuptools.package-data]
netopsbench = [
"models/*.yaml",
"platform/topology/*.json",
"platform/topology/*.sh",
"platform/observability/assets/**/*",
"platform/scenario/specs/*.yaml",
]
[tool.setuptools.exclude-package-data]
"*" = ["**/__pycache__", "**/__pycache__/*", "**/*.pyc"]
[tool.pytest.ini_options]
markers = [
"real: tests requiring deployed real environment and external services",
"slow: tests that are slow but do not need a real environment",
]
addopts = "-ra"
[tool.black]
line-length = 120
target-version = ["py312", "py313"]
[tool.isort]
profile = "black"
line_length = 120
known_first_party = ["netopsbench"]
[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = ["build", "lab-topology", "scenario_results", "scenarios/generated"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
# B008: function call in default arg (used by FastAPI/Click style); E501 is handled by black.
ignore = ["E501", "B008"]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
# Typed public, session, canonical-model, and simulator boundaries.
files = [
"netopsbench/sdk",
"netopsbench/agents",
"netopsbench/models",
"netopsbench/platform/client_agent",
"netopsbench/platform/incident",
"netopsbench/platform/observability",
"netopsbench/platform/pingmesh/_detector_analysis.py",
"netopsbench/platform/runtime",
"netopsbench/platform/session",
"netopsbench/platform/simulator",
"netopsbench/platform/topology/config.py",
"netopsbench/platform/topology/renderer.py",
"netopsbench/platform/traffic",
]
[[tool.mypy.overrides]]
# Non-root platform imports stay silent; the session and simulator roots above
# are checked directly.
module = "netopsbench.platform.*"
follow_imports = "silent"