-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
executable file
·177 lines (160 loc) · 4.08 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "TopoBenchmark"
dynamic = ["version"]
authors = [
{name = "Topological Intelligence Team Authors", email = "[email protected]"}
]
readme = "README.md"
description = "Topological Deep Learning"
license = {file = "LICENSE.txt"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
requires-python = ">= 3.10"
dependencies=[
"tqdm",
"numpy",
"scipy",
"requests",
"scikit-learn",
"matplotlib",
"networkx",
"pandas",
"decorator",
"hypernetx < 2.0.0",
"trimesh",
"spharapy",
"hydra-core==1.3.2",
"hydra-colorlog==1.2.0",
"hydra-optuna-sweeper==1.2.0",
"wandb",
"einops==0.7.0",
"tabulate",
"ipykernel",
"notebook",
"jupyterlab",
"rich",
"rootutils",
"topomodelx @ git+https://github.com/pyt-team/TopoModelX.git",
"toponetx @ git+https://github.com/pyt-team/TopoNetX.git",
"lightning==2.4.0",
]
[project.optional-dependencies]
doc = [
"jupyter",
"nbsphinx",
"nbsphinx_link",
"numpydoc",
"sphinx",
"sphinx_gallery",
"pydata-sphinx-theme"
]
lint = [
"pre-commit",
"ruff"
]
test = [
"pytest",
"pytest-cov",
"coverage",
"jupyter",
"mypy",
"pytest-mock"
]
dev = ["TopoBenchmark[test, lint]"]
all = ["TopoBenchmark[dev, doc]"]
[project.urls]
homepage="https://github.com/pyt-team/TopoBenchmarkX"
repository="https://github.com/pyt-team/TopoBenchmarkX"
[tool.black]
line-length = 79 # PEP 8 standard for maximum line length
target-version = ['py310']
[tool.docformatter]
wrap-summaries = 79
wrap-descriptions = 79
[tool.ruff]
target-version = "py310"
#extend-include = ["*.ipynb"]
extend-exclude = ["test", "tutorials", "notebooks"]
line-length = 79 # PEP 8 standard for maximum line length
[tool.ruff.format]
docstring-code-format = false
[tool.ruff.lint]
select = [
"F", # pyflakes errors
"E", # code style
"W", # warnings
"I", # import order
"UP", # pyupgrade rules
"B", # bugbear rules
"PIE", # pie rules
"Q", # quote rules
"RET", # return rules
"SIM", # code simplifications
"NPY", # numpy rules
"PERF", # performance rules
"RUF", # miscellaneous rules
]
fixable = ["ALL"]
ignore = [
"E501", # line too long
"RET504", # Unnecessary assignment before return
"RET505", # Unnecessary `elif` after `return` statement
"NPY002", # Replace legacy `np.random.seed` call with `np.random.Generator`
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` -- not compatible with python 3.9 (even with __future__ import)
"W293", # Does not allow to have empty lines in multiline comments
"PERF203", # [TODO: fix all such issues] `try`-`except` within a loop incurs performance overhead
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"tests/*" = ["D"]
[tool.setuptools.dynamic]
version = {attr = "topobenchmark.__version__"}
[tool.setuptools.packages.find]
include = [
"topobenchmark",
"topobenchmark.*"
]
[tool.mypy]
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
disable_error_code = ["import-untyped"]
plugins = "numpy.typing.mypy_plugin"
[[tool.mypy.overrides]]
module = [
"torch_cluster.*","networkx.*","scipy.spatial","scipy.sparse","toponetx.classes.simplicial_complex"
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--capture=no"
pythonpath = [
"."
]
[tool.numpydoc_validation]
checks = [
"all",
"GL01",
"ES01",
"EX01",
"SA01"
]
exclude = [
'\.undocumented_method$',
'\.__init__$',
'\.__repr__$',
]