forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
249 lines (233 loc) · 6.56 KB
/
pyproject.toml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
[build-system]
build-backend = 'setuptools.build_meta'
requires = ['setuptools>=61.2']
[project]
name = 'networkx'
description = 'Python package for creating and manipulating graphs and networks'
readme = 'README.rst'
requires-python = '>=3.10'
dynamic = ['version']
keywords = [
'Networks',
'Graph Theory',
'Mathematics',
'network',
'graph',
'discrete mathematics',
'math',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
]
dependencies = []
[[project.authors]]
name = 'Aric Hagberg'
email = '[email protected]'
[[project.maintainers]]
name = 'NetworkX Developers'
email = '[email protected]'
[project.urls]
Homepage = 'https://networkx.org/'
"Bug Tracker" = 'https://github.com/networkx/networkx/issues'
Documentation = 'https://networkx.org/documentation/stable/'
"Source Code" = 'https://github.com/networkx/networkx'
[project.entry-points."networkx.backends"]
nx_loopback = 'networkx.classes.tests.dispatch_interface:backend_interface'
[project.optional-dependencies]
default = [
'numpy>=1.24',
'scipy>=1.10,!=1.11.0,!=1.11.1',
'matplotlib>=3.7',
'pandas>=2.0',
]
developer = [
'changelist==0.5',
'pre-commit>=3.2',
'mypy>=1.1',
'rtoml',
]
doc = [
'sphinx>=7.3',
'pydata-sphinx-theme>=0.15',
'sphinx-gallery>=0.16',
'numpydoc>=1.8.0',
'pillow>=9.4',
'texext>=0.6.7',
'myst-nb>=1.1',
'intersphinx_registry',
]
example = [
'osmnx>=1.9',
'momepy>=0.7.2',
'contextily>=1.6',
'seaborn>=0.13',
'cairocffi>=1.7',
'igraph>=0.11',
'scikit-learn>=1.5',
]
extra = [
'lxml>=4.6',
'pygraphviz>=1.14',
'pydot>=3.0.1',
'sympy>=1.10',
]
test = [
'pytest>=7.2',
'pytest-cov>=4.0',
]
[tool.setuptools]
zip-safe = false
include-package-data = false
packages = [
'networkx',
'networkx.algorithms',
'networkx.algorithms.assortativity',
'networkx.algorithms.bipartite',
'networkx.algorithms.centrality',
'networkx.algorithms.community',
'networkx.algorithms.components',
'networkx.algorithms.connectivity',
'networkx.algorithms.coloring',
'networkx.algorithms.flow',
'networkx.algorithms.minors',
'networkx.algorithms.traversal',
'networkx.algorithms.isomorphism',
'networkx.algorithms.shortest_paths',
'networkx.algorithms.link_analysis',
'networkx.algorithms.operators',
'networkx.algorithms.approximation',
'networkx.algorithms.tree',
'networkx.classes',
'networkx.generators',
'networkx.drawing',
'networkx.linalg',
'networkx.readwrite',
'networkx.readwrite.json_graph',
'networkx.tests',
'networkx.utils',
]
platforms = [
'Linux',
'Mac OSX',
'Windows',
'Unix',
]
[tool.setuptools.dynamic.version]
attr = 'networkx.__version__'
[tool.setuptools.package-data]
networkx = ['tests/*.py']
"networkx.algorithms" = ['tests/*.py']
"networkx.algorithms.assortativity" = ['tests/*.py']
"networkx.algorithms.bipartite" = ['tests/*.py']
"networkx.algorithms.centrality" = ['tests/*.py']
"networkx.algorithms.community" = ['tests/*.py']
"networkx.algorithms.components" = ['tests/*.py']
"networkx.algorithms.connectivity" = ['tests/*.py']
"networkx.algorithms.coloring" = ['tests/*.py']
"networkx.algorithms.minors" = ['tests/*.py']
"networkx.algorithms.flow" = [
'tests/*.py',
'tests/*.bz2',
]
"networkx.algorithms.isomorphism" = [
'tests/*.py',
'tests/*.*99',
]
"networkx.algorithms.link_analysis" = ['tests/*.py']
"networkx.algorithms.approximation" = ['tests/*.py']
"networkx.algorithms.operators" = ['tests/*.py']
"networkx.algorithms.shortest_paths" = ['tests/*.py']
"networkx.algorithms.traversal" = ['tests/*.py']
"networkx.algorithms.tree" = ['tests/*.py']
"networkx.classes" = ['tests/*.py']
"networkx.generators" = [
'tests/*.py',
'atlas.dat.gz',
]
"networkx.drawing" = [
'tests/*.py',
'tests/baseline/*png',
]
"networkx.linalg" = ['tests/*.py']
"networkx.readwrite" = ['tests/*.py']
"networkx.readwrite.json_graph" = ['tests/*.py']
"networkx.utils" = ['tests/*.py']
[tool.changelist]
ignored_user_logins = ["dependabot[bot]", "pre-commit-ci[bot]", "web-flow"]
[tool.ruff.lint]
extend-select = [
# "B", # flake8-bugbear
"I", # isort
# "ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
# "D", # pydocstyle (see tool.ruff.lint.pydocstyle below)
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
# "G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
# "PL", # pylint
"PLR0402",
# "PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
# "RET", # flake8-return
# "RUF", # Ruff-specific
# "SIM", # flake8-simplify
"SIM101",
"SIM109",
"SIM110",
"SIM118",
"SIM2",
# "T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
# "FURB", # refurb
"PYI", # flake8-pyi
]
ignore = [
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
"F", # pyflakes
"E", # pycodestyle
"EM101", # Exception must not use a string literal
"EM102", # Exception must not use an f-string literal
"PD", # pandas-vet
"ICN", # flake8-import-conventions
"PYI", # flake8-pyi
"NPY002", # Replace legacy `np.random.random` call with `np.random.Generator`
]
# Need to select D above
#[tool.ruff.lint.pydocstyle]
#convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ['I']
"examples/*.py" = ['I']
"doc/*.py" = ['I']
"tools/*.py" = ['I']
"networkx/classes/filters.py" = ['C416']
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
ignore_missing_imports = true
exclude = 'subgraphviews|reportviews'
[[tool.mypy.overrides]]
module = 'networkx.classes.reportviews'
ignore_errors = true