-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·231 lines (215 loc) · 4.87 KB
/
pyproject.toml
File metadata and controls
executable file
·231 lines (215 loc) · 4.87 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["spatiomic"]
[project]
name = "spatiomic"
version = "0.9.2"
description = "A python toolbox for spatial omics analysis."
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Malte Kuehl", email = "malte.kuehl@clin.au.dk" }]
readme = { file = "README.md", content-type = "text/markdown" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
"Natural Language :: English",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"adjustText",
"anndata>=0.12.0",
"colorcet",
"esda>=2.7.0",
"joblib",
"lazy_loader",
"matplotlib",
"networkx",
"numpy>=2",
"pandas>=2",
"pysal",
"python-igraph",
"scikit-image",
"scikit-learn",
"scipy>=0.16.1",
"scipy-stubs",
"seaborn",
"statsmodels",
"umap-learn",
"llvmlite>=0.39.0",
"xpysom==1.0.7",
"astroid==3.3.11",
]
[project.urls]
Home = "https://github.com/complextissue/spatiomic"
Source = "https://github.com/complextissue/spatiomic"
Documentation = "https://spatiomic.org"
[tool.ruff]
include = [
"pyproject.toml",
"docs/**/*.py",
"docs/**/*.ipynb",
"spatiomic/**/*.py",
"test/**/*.py",
]
cache-dir = "~/.cache/ruff"
exclude = [".venv"]
line-length = 120
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C4",
"D",
"I",
"E4",
"E7",
"E9",
"F",
"FIX",
"N",
"NPY",
"PD",
"PERF",
"RUF",
"S",
"SIM",
"TID",
"W",
]
ignore = [
"C901",
"D417",
"E402",
"E203",
"E731",
"F841",
"F811",
"N811",
"N813",
"NPY002",
"S301",
"S403",
"S101",
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
pydocstyle.convention = "google"
mccabe.max-complexity = 7
isort.case-sensitive = true
isort.order-by-type = true
[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
disallow_untyped_defs = true
python_version = "3.13"
ignore_missing_imports = true
exclude = ["^docs/.*", "^test/.*"]
[tool.pytest.ini_options]
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_level = "WARNING"
log_cli = true
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"cpu: marks tests that explicitly run the CPU, not the GPU version (deselect with '-m \"not cpu\"')",
"no_github_ci: marks tests that should not be run on GitHub CI (deselect with '-m \"not no_github_ci\"')",
"gpu: marks tests that require a GPU (deselect with '-m \"not gpu\"')",
]
[tool.coverage.run]
source = ["spatiomic"]
omit = ["*/test/*", "*/plot/*"]
[tool.coverage.report]
# don't complain if non-runnable code isn't run:
exclude_lines = [
"if 0:",
"if __name__ == __main__:",
"raise",
"except",
"@abc.abstractmethod",
"def __repr__",
"def __str__",
"if TYPE_CHECKING:",
# exclude GPU-only parts
"if use_gpu:",
"if self.use_gpu:",
"if self.cuml:",
"if cuml",
"elif cuml:",
]
ignore_errors = true
[tool.coverage.html]
directory = "docs/coverage_report"
[dependency-groups]
dev = [
"aicspylibczi",
"bandit>=1.8.6",
"certifi",
"coverage",
"furo",
"ipykernel",
"ipywidgets",
"jupyter-client",
"jupyter-core",
"mypy==1.18.2",
"myst-parser",
"nbsphinx",
"opencv-python-headless",
"openpyxl",
"pandas-stubs",
"pandoc",
"pre-commit",
"pygments",
"pytest",
"qptifffile",
"readlif",
"ruff==0.13.2",
"session-info2",
"sphinx",
"sphinx-autoapi",
"sphinx-autodoc-typehints",
"sphinxcontrib-mermaid",
"sphinx-copybutton",
"sphinx-design",
"sphinx-rtd-theme",
]
[project.optional-dependencies]
cellpose = ["cellpose>=4.0.1,<5"]
spatialdata = ["spatialdata==0.6.1"]
cuda-12 = [
"cuml-cu12>=24.10.0",
"cugraph-cu12>=24.10.0",
"nx-cugraph-cu12>=24.10.0",
"cucim-cu12>=24.10.0",
]
cuda-11 = [
"cuml-cu11>=24.10.0",
"cugraph-cu11>=24.10.0",
"nx-cugraph-cu11>=24.10.0",
"cucim-cu11>=24.10.0",
]
[tool.uv]
default-groups = []
extra-index-url = ["https://pypi.nvidia.com"]
index-strategy = "unsafe-best-match"
prerelease = "allow"
conflicts = [[{ extra = "cuda-11" }, { extra = "cuda-12" }]]
[tool.uv.sources]
spatiomic = { workspace = true }