-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (93 loc) · 2.76 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (93 loc) · 2.76 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "netopsbench"
version = "0.1.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",
"influxdb-client>=1.30.0",
"pygnmi>=0.8.0",
"scapy>=2.5.0",
"pandas>=1.5.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-pingmesh-agent = "netopsbench.platform.pingmesh.cli: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",
]
dev = [
"pytest>=6.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"black>=24.0.0",
"ruff>=0.4.0",
"isort>=5.13.0",
"mypy>=1.8.0",
"pre-commit>=3.5.0",
]
[tool.setuptools.packages.find]
include = ["netopsbench*"]
[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 = ["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
# Phase-2 mypy covers public SDK, agent contract, and the typed session boundary.
files = ["netopsbench/sdk", "netopsbench/agents", "netopsbench/platform/session"]
[[tool.mypy.overrides]]
# platform/ is an internal implementation layer; suppress errors from import-following
# until a dedicated mypy phase covers it.
module = "netopsbench.platform.*"
follow_imports = "silent"