-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
152 lines (137 loc) · 3.67 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
[project]
name = "depiction"
version = "0.1.0"
description = ""
authors = [{ name = "Leonardo Schwarz", email = "[email protected]" }]
readme = "README.md"
license = { text = "Apache-2.0" }
dependencies = [
"alphapept>=0.5.2",
# TODO investigate
"altair<5.4.0",
"h5py>=3.10.0",
"matplotlib>=3.8.2",
"numba>=0.59.0",
# TODO unpin when https://github.com/Unidata/netcdf4-python/issues/1343 is resolved
"numpy>=1.26.2,<2.0.0",
"opencv-python>=4.9.0.80",
"pandas>=2.1.4",
"pillow>=10.1.0",
"polars>=0.20.14",
"pydantic>=2.6.0",
"pyimzml>=1.5.3",
"pyyaml>=6.0.1",
# TODO quarto-cli 1.5.57 somehow fails to install in my venv
"quarto-cli<1.5.57",
"scikit-image>=0.22.0",
"scikit-learn>=1.3.2",
"scipy>=1.11.4",
"seaborn>=0.13.0",
"snakemake>=8.10.7",
"sparse>=0.15.4",
"statsmodels>=0.14.0",
"tqdm>=4.66.1",
"cyclopts",
"vegafusion[embed]>=1.6.5",
"xarray",
# TODO unpin when https://github.com/Unidata/netcdf4-python/issues/1343 is resolved
"netCDF4<=1.7.1",
"bioio @ git+https://github.com//bioio-devs/bioio.git@127a87db296db4462a73b227287c9a2a1f190e14",
"bioio-ome-tiff",
"bioio-ome-zarr",
"loguru",
"ms-peak-picker",
"findmfpy",
"kdepy>=1.1.8",
"perlin-noise==1.13",
"pandera[polars]",
# TODO demote to optional again later, but necessary for pycharm right now
"bfabric @ git+https://github.com/fgcz/bfabricPy.git@main",
"app_runner @ git+https://github.com/fgcz/bfabricPy.git@main#egg=app_runner&subdirectory=app_runner",
"snakemake_invoke @ git+https://github.com/leoschwarz/snakemake_invoke@main",
]
[project.scripts]
depiction-tools = "depiction.tools.cli.cli:app"
[project.optional-dependencies]
testing = [
"coverage>=7.4.3",
"hypothesis>=6.99.11",
"pytype>=2023.12.18",
"logot",
"pytest",
"pytest-mock",
"pytest-pretty",
# TODO to be explored later
#"pytest-regtest",
]
dev = [
"depiction[testing]",
"bokeh>=3.3.2",
"hvplot>=0.9.0",
"jupyterlab>=4.0.9",
"patchworklib>=0.6.3",
"pyarrow>=14.0.1",
"rich>=13.7.0",
"ruff>=0.3.5",
"xmltodict",
"hdbscan",
"nox[uv]",
"spatialdata>=0.2.3",
"spatialdata-plot>=0.2.1",
"types-tqdm",
"rpy2",
"pytype",
"streamlit"
]
doc = [
"sphinx",
"myst-parser",
"autodoc_pydantic",
"sphinx-book-theme",
"sphinx-autobuild",
]
apps = [
"bfabric @ git+https://github.com/fgcz/bfabricPy.git@main"
]
typing = [
"mypy",
"pandas-stubs",
"types-PyYAML",
"scipy-stubs",
]
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-data]
depiction_targeted_preproc = ["**/*.smk", "**/Snakefile", "**/*.yml", "**/*.yaml"]
[tool.uv]
reinstall-package = ["depiction"]
[tool.black]
line-length = 120
[tool.mypy]
plugins = "numpy.typing.mypy_plugin"
[tool.licensecheck]
using = "PEP631"
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["ANN", "BLE", "D103", "E", "F", "PLW", "PTH", "SIM", "UP", "TCH"]
# Note: "TCH002" would be useful, but it also has false positives and needs to be deactivated in particular
# for the command-line interface module since the inspect module will currently fail everything there.
ignore = ["ANN101", "ANN102", "TCH002"]
[tool.coverage.report]
# TODO make it work?
exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.codespell]
ignore-words-list = "averagine,coo"
[tool.check-tests-structure]
sources_path = "src/depiction"
tests_path = "tests/unit"
allow_missing_tests = true