-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
272 lines (257 loc) · 6.87 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# pyproject.toml adapted from https://github.com/scverse/squidpy/blob/main/pyproject.toml
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[project]
name = "graphcompass"
#dynamic = ["version"]
version = "0.2.4"
description = "Spatial metrics for differential analyses of cell organization across conditions"
readme = "README.md" #change to README_pypi.md for PyPI
requires-python = ">=3.9, <3.12"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Environment :: Console",
"Framework :: Jupyter",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Visualization",
]
keywords = [
"spatial omics",
"bio-informatics",
"tissue architecture",
"spatial data analysis",
"cell spatial organization",
"graph analytics",
]
authors = [
{name = "Mayar Ali"},
{name = "Merel Kuijs"},
]
maintainers = [
{name = "Mayar Ali", email = "[email protected]"},
{name = "Merel Kuijs", email = "[email protected]"}
]
dependencies = [
"aiohttp>=3.8.1",
"anndata>=0.9",
"cycler>=0.11.0",
"Cython>=3.0.2",
"dask-image>=0.5.0",
"dask[array]>=2021.02.0",
"docrep>=0.3.1",
"fsspec>=2021.11.0",
"igraph>=0.11.3",
"leidenalg>=0.8.2",
"matplotlib>=3.3",
"matplotlib-scalebar>=0.8.0",
"networkx>=2.8.6",
"NetLSD>=1.0.2",
"numba>=0.56.4",
"numpy>=1.23.0",
"omnipath>=1.0.7",
"pandas>=2.1.0",
"Pillow>=8.0.0",
"POT",
"scanpy>=1.9.3",
"scikit-image>=0.19,<=0.20",
"scikit-learn>=0.24.0",
"squidpy>=1.2.2",
"spatialdata",
"statannot>=0.2.3",
"statsmodels>=0.12.0",
"tifffile!=2022.4.22",
"tqdm>=4.50.2",
"validators>=0.18.2",
"xarray>=0.16.1",
"zarr>=2.6.1",
]
dev = [
"pre-commit>=3.0.0",
"tox>=4.0.0",
]
test = [
"pytest>=7",
"pytest-xdist>=3",
"pytest-mock>=3.5.0",
"pytest-cov>=4",
"coverage[toml]>=7",
]
docs = [
"ipython",
"ipywidgets>=8.0.0",
"sphinx>=5.3",
"sphinx-autodoc-annotation",
"sphinx-autodoc-typehints>=1.10.3",
"sphinx_rtd_theme",
"sphinxcontrib-bibtex>=2.3.0",
"sphinxcontrib-spelling>=7.6.2",
"nbsphinx>=0.8.1",
"myst-nb>=0.17.1",
"sphinx_copybutton>=0.5.0",
]
[project.urls]
Homepage = "https://github.com/theislab/graphcompass"
"Bug Tracker" = "https://github.com/theislab/graphcompass/issues"
"Source Code" = "https://github.com/theislab/graphcompass"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools_scm]
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.isort]
profile = "black"
py_version = "38"
skip = "docs/source/conf.py,.tox,build"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
known_stdlib = "joblib"
known_bio = "anndata,scanpy,squidpy"
known_num = "numpy,numba,scipy,sklearn,statsmodels,pandas,xarray,dask"
known_plot = "matplotlib,seaborn,napari"
known_gui = "PyQt5,superqt"
known_img = "skimage,tifffile,dask_image"
known_graph = "networkx"
sections = "FUTURE,STDLIB,THIRDPARTY,BIO,NUM,GUI,PLOT,IMG,GRAPH,FIRSTPARTY,LOCALFOLDER"
no_lines_before="LOCALFOLDER"
balanced_wrapping = true
force_grid_wrap = 0
length_sort = "1"
indent = " "
from_first = true
order_by_type = true
atomic = true
combine_star = true
combine_as_imports = true
honor_noqa = true
remove_redundant_aliases = true
only_modified = true
group_by_package = true
force_alphabetical_sort_within_sections = true
lexicographical = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
exclude = [
".git",
".tox",
"__pycache__",
"build",
"docs/_build",
"dist",
"setup.py"
]
ignore = [
# line too long -> we accept long comment lines; black gets rid of long code lines
"E501",
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
"E731",
# allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation
"E741",
# Missing docstring in public package
"D104",
# ... imported but unused
"F401",
# Missing docstring in public module
"D100",
# Missing docstring in __init__
"D107",
# Do not perform function calls in argument defaults.
"B008",
# Missing docstring in magic method
"D105",
# Missing blank line before section
"D411",
# D100 Missing docstring in public module
"D100",
# D107 Missing docstring in __init__,
"D107",
# B008 Do not perform function calls in argument defaults.
"B008",
# B024 Do not use `__class__` for string comparisons.
"B024",
## Flake8 rules not supported by ruff:
# RST201 Block quote ends without a blank line; unexpected unindent.
# "RST201",
# RST301 Unexpected indentation.
# "RST301",
# RST306 Unknown target name.
# "RST306",
# RST203 Definition list ends without a blank line; unexpected unindent.
# "RST203",
# line break before a binary operator -> black does not adhere to PEP8
# "W503",
# line break occured after a binary operator -> black does not adhere to PEP8
# "W504",
# whitespace before : -> black does not adhere to PEP8
# "E203",
# whitespace before : -> black does not adhere to PEP8
# "E203",
# missing whitespace after ,', ';', or ':' -> black does not adhere to PEP8
# "E231",
# continuation line over-indented for hanging indent -> black does not adhere to PEP8
# "E126",
# inline comment should start with '#' -> Scanpy allows them for specific explanations
# "E266",
# format string does contain unindexed parameters
# "P101",
# indentation is not a multiple of 4
# "E111",
# "E114",
]
line-length = 120
select = [
"I", # isort
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
# below are not autofixed
"UP", # pyupgrade
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"BLE", # flake8-blind-except
]
unfixable = ["B", "UP", "C4", "BLE"]
target-version = "py38"
[tool.ruff.per-file-ignores]
"*/__init__.py" = ["D104", "F401"]
"tests/*"= ["D"]
"docs/*"= ["D","B"]
# "graphcompass/*.py"= ["RST303"]
[tool.ruff.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"