-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (102 loc) · 2.56 KB
/
pyproject.toml
File metadata and controls
116 lines (102 loc) · 2.56 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
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "netlab"
version = "0.3.0"
description = "Metrics and analysis tools for NetGraph scenarios."
readme = "README.md"
authors = [{ name = "Andrey Golovanov" }]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
# Runtime deps inferred from imports
dependencies = [
"numpy>=1.24",
"pandas>=2.0",
"matplotlib>=3.7",
"seaborn>=0.13",
"scipy>=1.11",
"rich>=13.0",
"ngraph>=0.12.0",
"topogen @ git+https://github.com/networmix/TopoGen@main",
"cairosvg>=2.7",
]
[project.optional-dependencies]
dev = [
# testing
"pytest>=8",
"pytest-cov",
"pytest-benchmark",
"pytest-mock",
"pytest-timeout",
# style + typing
"ruff==0.11.13",
"pyright==1.1.401",
"pandas-stubs",
# pre-commit
"pre-commit",
# build/publish (optional)
"build",
"twine",
]
[tool.pytest.ini_options]
addopts = "--cov=./ --cov-report term-missing --benchmark-disable-gc --benchmark-min-rounds=5 --benchmark-warmup=on"
timeout = 30
markers = [
"benchmark: marks tests as performance benchmarks (run with '-m benchmark')",
"slow: marks tests that take >30s (ngraph subprocess execution)",
"timeout: marks tests with custom timeout (requires pytest-timeout)",
]
[tool.coverage.run]
source = ["."]
omit = ["*/tests/*", "*/test_*", "*/conftest.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.setuptools.packages.find]
include = ["metrics*", "netlab*"]
exclude = ["tests*"]
[project.scripts]
netlab = "netlab.cli:main"
[tool.ruff]
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "I"]
ignore = ["E501"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["metrics"]
[tool.ruff.format]
quote-style = "double"
skip-magic-trailing-comma = false
[tool.pyright]
typeCheckingMode = "standard"
pythonVersion = "3.11"
venvPath = "."
venv = "venv"
exclude = [
"tests/**",
"**/venv/**",
"**/*venv/**",
"build/**",
"dist/**",
"**/__pycache__/**",
"**/*.egg-info/**",
]
reportMissingTypeStubs = "warning"
reportUnknownMemberType = "none"
reportUnknownVariableType = "none"
reportUnknownArgumentType = "none"