-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (136 loc) · 3.66 KB
/
pyproject.toml
File metadata and controls
147 lines (136 loc) · 3.66 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=77", "setuptools-scm>=8" ]
[project]
name = "cytodataframe"
description = """\
An in-memory data analysis format for single-cell profiles alongside their corresponding images and segmentation \
masks.\
"""
readme = "README.md"
license = "BSD-3-Clause"
authors = [ { name = "Way Science Community" } ]
requires-python = ">=3.11,<3.14"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [ "version" ]
dependencies = [
"imagecodecs>=2024.9.22,<2027",
"imageio>=2.37,<3",
"ipython>=8.12.3,<10",
"ipyvolume>=0.6.3,<0.7",
"ipywidgets>=8.1.7,<9",
"matplotlib>=3.9.3,<4",
"nest-asyncio>=1.6,<2",
"ome-arrow>=0.0.3,<0.0.9",
"opencv-python>=4.10.0.84,<5",
"pandas>=2.2.2,<4",
"pyarrow>=16",
"pyvista>=0.46.4",
"pywavelets>1.4.1",
"scikit-image>0.19.3",
"trame>=3.12",
"trame-vtk>=2.10",
"trame-vuetify>=3.1",
]
[dependency-groups]
dev = [
"black>=24.10,<27",
"cosmicqc>=1.0.1; python_version<'3.13' and python_version>='3.10'",
"coverage>=7.6,<8",
"duckdb>=1.1.3,<2",
"httpcore>=0.18,<1.1",
"isort>=5.13.2,<9",
"jupyterlab>=4.3,<5",
"jupyterlab-code-formatter>=3.0.2,<4",
"jupytext>=1.16.4,<2",
"poethepoet>=0.37,<0.43",
"pytest>=8.3.3,<10",
"pytest-cov>=5,<8",
"sqlalchemy>=1.3.6,<3",
]
docs = [
"dunamai>=1.22,<2",
"myst-nb>=1.1.2,<2",
"myst-parser>=3,<6",
"pydata-sphinx-theme>=0.16,<0.17",
"sphinx>=9,<9.1",
"sphinx-multiversion",
]
[tool.setuptools]
package-dir = { "" = "src" }
packages.find.where = [ "src" ]
[tool.setuptools_scm]
root = "."
version_scheme = "no-guess-dev"
local_scheme = "no-local-version"
version_file = "src/cytodataframe/_version.py"
[tool.uv]
default-groups = [
"dev",
"docs",
]
sources.sphinx-multiversion = { git = "https://github.com/J-RN/sphinx-multiversion", rev = "a77f0c862dace3a62c18fc866da60ef7dde3873d" }
[tool.ruff]
target-version = "py311"
line-length = 88
fix = true
lint.select = [
# flake8-builtins
"A",
# flake8-annotations
"ANN",
# flake8-comprehensions
"C4",
# mccabe
"C90",
# pycodestyle
"E",
# pyflakes
"F",
# isort
"I",
# pylint
"PL",
# ruff
"RUF",
# flake8-simplify
"SIM",
"W",
]
# Ignore `E402` and `F401` (unused imports) in all `__init__.py` files
lint.per-file-ignores."__init__.py" = [ "E402", "F401" ]
lint.per-file-ignores."docs/src/examples/*.py" = [ "E402", "E501" ]
lint.per-file-ignores."src/cytodataframe/*.py" = [ "ANN401", "PLC0415" ]
lint.per-file-ignores."src/cytodataframe/image.py" = [ "PLR2004" ]
# ignore typing rules for tests
lint.per-file-ignores."tests/*" = [ "ANN201", "PLR0913", "PLR2004", "SIM105" ]
# specify where version replacement is performed
[tool.bandit]
exclude_dirs = [ "tests" ]
[tool.pytest]
ini_options.addopts = "--cov=src/cytodataframe --cov-report=term-missing:skip-covered --no-cov-on-fail"
[tool.coverage]
# settings to avoid errors with cv2 and coverage
# see here for more: https://github.com/nedbat/coveragepy/issues/1653
run.omit = [
"config-3.py",
"config.py",
]
[tool.jupytext]
formats = "ipynb,py:light"
[tool.poe]
# note: quarto commands below expect quarto installed on the local system.
# see here for more information: https://quarto.org/docs/download/
tasks.poster-preview.shell = """
quarto preview \
docs/presentations/2025-sbi2/poster.qmd
"""
tasks.poster-render.shell = """\
quarto render \\\n docs/presentations/2025-sbi2/poster.qmd\n mv \
docs/presentations/2025-sbi2/cytodataframe-2025-poster.pdf \\\n docs/src/_static/cytodataframe-2025-poster.pdf\n\
"""