-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
178 lines (162 loc) · 4.19 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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "TopoNetX"
dynamic = ["version"]
authors = [
{name = "Mustafa Hajij", email = "[email protected]"},
{name = "Mathilde Papillon", email = "[email protected]"},
{name = "Florian Frantzen", email = "[email protected]"}
]
readme = "README.md"
description = "Computing on Topological Domains"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">= 3.10"
dependencies=[
"networkx",
"numpy",
"pandas",
"pyarrow",
"requests",
"scipy",
"trimesh",
"typing-extensions",
]
[project.optional-dependencies]
doc = [
"jupyter",
"nbsphinx",
"nbsphinx_link",
"numpydoc >= 1.8.0",
"sphinx",
"sphinx-copybutton",
"sphinx_gallery",
"pydata-sphinx-theme"
]
lint = [
"pre-commit"
]
test = [
"pytest",
"pytest-cov",
"coverage",
"jupyter",
# mypy and typing stubs
"mypy > 1.6.0",
"pandas-stubs",
"types-requests"
]
dev = ["TopoNetX[test, lint]"]
all = [
"TopoNetX[doc, dev]",
# optional packages that are not required to run the library
"hypernetx < 2.0.0",
"spharapy"
]
[project.urls]
documentation="https://pyt-team.github.io/toponetx/"
source="https://github.com/pyt-team/TopoNetX/"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"F", # pyflakes errors
"E", # code style
"W", # warnings
"I", # import order
"D", # pydocstyle rules
"UP", # pyupgrade rules
"YTT", # flake8-2020 rules
"S", # bandit rules
"BLE", # blind except
"B", # bugbear rules
"A", # builtin shadowing
"COM", # comma rules
"C4", # comprehensions
"DTZ", # datetime rules
"T10", # debugger calls
"FA", # future annotations
"ISC", # implicit str concatenation
"ICN", # import conventions
"LOG", # logging rules
"G", # logging format rules
"PIE", # pie rules
"Q", # quote rules
"RSE", # raise rules
"RET", # return rules
"SLOT", # slot rules
"SIM", # code simplifications
"TID", # tidy imports
"TCH", # type checking rules
"PTH", # use pathlib
"PD", # pandas rules
"PLC", # pylint conventions
"PLE", # pylint errors
"FLY", # flynt
"NPY", # numpy rules
"PERF", # performance rules
"FURB", # refurb
"RUF", # miscellaneous rules
]
ignore = [
"E501", # line too long
"COM812", # trailing commas; conflict with `ruff format`
"ISC001", # implicitly single-line str concat; conflict with `ruff format`
"PERF203", # allow try-except within loops
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"test/**.py" = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.setuptools.packages.find]
include = ["toponetx"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
version_file = "toponetx/_version.py"
[tool.mypy]
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
disable_error_code = ["import-untyped"]
plugins = "numpy.typing.mypy_plugin"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
"ignore::scipy.sparse._base.SparseEfficiencyWarning",
]
log_cli_level = "info"
testpaths = ["test"]
[tool.coverage.report]
exclude_lines = ["pragma: not covered", "@overload"]
[tool.numpydoc_validation]
checks = [
"all",
"GL01",
"ES01",
"EX01",
"SA01"
]
exclude = [
'\.__init__$',
]