forked from scverse/scanpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
198 lines (189 loc) · 5.52 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
[build-system]
build-backend = "flit_core.buildapi"
requires = [
"flit_core >=3.4,<4",
"setuptools_scm",
"tomli",
"importlib_metadata>=0.7; python_version < '3.8'",
]
[project]
name = "scanpy"
description = "Single-Cell Analysis in Python."
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Alex Wolf"},
{name = "Philipp Angerer"},
{name = "Fidel Ramirez"},
{name = "Isaac Virshup"},
{name = "Sergei Rybakov"},
{name = "Gokcen Eraslan"},
{name = "Tom White"},
{name = "Malte Luecken"},
{name = "Davide Cittaro"},
{name = "Tobias Callies"},
{name = "Marius Lange"},
{name = "Andrés R. Muñoz-Rojas"},
]
maintainers = [
{name = "Isaac Virshup", email = "ivirshup@gmail.com"},
{name = "Philipp Angerer", email = "phil.angerer@gmail.com"},
{name = "Alex Wolf", email = "f.alex.wolf@gmx.de"},
]
readme = {file = "README.md", content-type="text/markdown"}
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"anndata>=0.7.4",
# numpy needs a version due to #1320
"numpy>=1.17.0",
"matplotlib>=3.4",
"pandas>=1.0",
"scipy>=1.4",
"seaborn",
"h5py>=3",
"tqdm",
"scikit-learn>=0.24",
"statsmodels>=0.10.0rc2",
"patsy",
"networkx>=2.3",
"natsort",
"joblib",
"numba>=0.41.0",
"umap-learn>=0.3.10",
"packaging",
"session-info",
# for getting the stable version
]
dynamic = ["version"]
[project.urls]
Documentation = "https://scanpy.readthedocs.io/"
Source = "https://github.com/scverse/scanpy"
Home-page = "https://scanpy.org"
Discourse = "https://discourse.scverse.org/c/help/scanpy/37"
Twitter = "https://twitter.com/scverse_team"
[project.scripts]
scanpy = "scanpy.cli:console_main"
[project.optional-dependencies]
test-min = [
"pytest>=4.4",
"pytest-nunit",
"profimp",
]
test = [
"scanpy[test-min]",
# Optional but important dependencies
"scanpy[leiden]",
"zarr",
"scanpy[dask]",
]
test-full = [
"scanpy[test]",
# tested algorithms
"scanpy[leiden]",
"scanpy[magic]",
"scanpy[skmisc]",
"scanpy[harmony]",
"scanpy[scanorama]",
"scanpy[scrublet]",
]
doc = [
"sphinx>=4.4,<5", # remove upper bound when theme supports dark mode
"scanpydoc>=0.7.11",
"sphinx-autodoc-typehints",
"myst-parser",
"myst-nb",
"sphinx-book-theme",
"sphinx-design",
"sphinxext-opengraph", # for nice cards when sharing on social
"sphinx-copybutton",
"nbsphinx",
"ipython>=7.20", # for nbsphinx code highlighting
"matplotlib!=3.6.1",
"scanpy[paga]",
]
dev = [
# getting the dev version
"setuptools_scm",
# static checking
"black>=20.8b1",
"docutils",
]
# Algorithms
paga = ["igraph"]
louvain = ["igraph", "louvain>=0.6,!=0.6.2"] # Louvain community detection
leiden = ["igraph>=0.10", "leidenalg>=0.9"] # Leiden community detection
bbknn = ["bbknn"] # Batch balanced KNN (batch correction)
magic = ["magic-impute>=2.0"] # MAGIC imputation method
skmisc = ["scikit-misc>=0.1.3"] # highly_variable_genes method 'seurat_v3'
harmony = ["harmonypy"] # Harmony dataset integration
scanorama = ["scanorama"] # Scanorama dataset integration
scrublet = ["scrublet"] # Doublet detection
# Acceleration
rapids = ["cudf>=0.9", "cuml>=0.9", "cugraph>=0.9"] # GPU accelerated calculation of neighbors
dask = ["dask[array]!=2.17.0"] # Use the Dask parallelization engine
[tool.flit.sdist]
exclude = [
"scanpy/tests",
"setup.py",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"-pscanpy.testing._pytest",
]
testpaths = ["scanpy"]
norecursedirs = ["scanpy/tests/_images"]
xfail_strict = true
nunit_attach_on = "fail"
markers = [
"internet: tests which rely on internet resources (enable with `--internet-tests`)",
]
[tool.coverage.run]
source_pkgs = ["scanpy"]
omit = ["*/tests/*"]
[tool.coverage.paths]
source = [".", "**/site-packages"]
[tool.black]
skip-string-normalization = true
[tool.ruff]
select = [
"F", # Pyflakes
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
"TID251", # Banned imports
]
ignore = [
# module imported but unused -> required for Scanpys API
"F401",
# line too long -> we accept long comment lines; black gets rid of long code lines
"E501",
# module level import not at top of file -> required to circumvent circular imports for Scanpys API
"E402",
# E266 too many leading '#' for block comment -> Scanpy allows them for comments into sections
"E262",
# allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation
"E741",
]
[tool.ruff.per-file-ignores]
# Do not assign a lambda expression, use a def
"scanpy/tools/_rank_genes_groups.py" = ["E731"]
[tool.ruff.flake8-tidy-imports.banned-api]
"pytest.importorskip".msg = "Use the “@needs” decorator/mark instead"