-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (143 loc) · 3.18 KB
/
pyproject.toml
File metadata and controls
153 lines (143 loc) · 3.18 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=64", "setuptools-scm>=8", "uv-dynamic-versioning" ]
[project]
name = "ome-arrow"
description = "Using OME specifications with Apache Arrow for fast, queryable, and language agnostic bioimage data."
readme = "README.md"
authors = [
{ name = "Dave Bunten" },
]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "version" ]
dependencies = [
"bioio>=3",
"bioio-ome-tiff>=1.4",
"bioio-ome-zarr>=3.0.3",
"bioio-tifffile>=1.3",
"fire>=0.7",
"matplotlib>=3.10.7",
"numpy>=2.2.6",
"pandas>=2.2.3",
"pillow>=12",
"pyarrow>=22",
]
optional-dependencies.dlpack = [
"jax>=0.4.1",
"torch>=2.1",
]
optional-dependencies.dlpack-jax = [
"jax>=0.4.1",
]
optional-dependencies.dlpack-torch = [
"torch>=2.1",
]
optional-dependencies.viz = [
"ipywidgets>=8.1.8",
"jupyterlab-widgets>=3.0.16",
"pyvista>=0.46.4",
"trame>=3.12",
"trame-vtk>=2.10",
"trame-vuetify>=3.1",
]
optional-dependencies.vortex = [
"vortex-data>=0.56",
]
[dependency-groups]
dev = [
"poethepoet>=0.34",
"pytest>=8.3.5",
"vortex-data>=0.56",
]
docs = [
"myst-nb>=1.2",
"pydata-sphinx-theme>=0.16.1",
"sphinx>=8.2.3",
]
notebooks = [
"black>=25.1",
"ipykernel>=6.29.5",
"isort>=6.0.1",
"jupyterlab>=4.4.2",
"jupyterlab-code-formatter>=3.0.2",
"jupytext>=1.17.1",
]
[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/ome_arrow/_version.py"
[tool.ruff]
target-version = "py311"
line-length = 88
fix = true
lint.select = [
# flake8-builtins
"A",
# flake8-annotations
"ANN",
# flake8-comprehensions
"C4",
# mccabe
"C90",
# pydocstyle (docstring presence)
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
# pycodestyle
"E",
# pyflakes
"F",
# isort
"I",
# pylint
"PL",
# ruff
"RUF",
# flake8-simplify
"SIM",
"W",
]
# ignore various rules for all
lint.per-file-ignores."*" = [ "ANN401", "C901", "PLC0415", "PLR0912", "PLR0913", "PLR0915", "PLR2004" ]
# Ignore `F401` (unused imports) for `__init__.py` file
lint.per-file-ignores."__init__.py" = [ "F401" ]
# ignore docstring presence checks for docs
lint.per-file-ignores."docs/*" = [ "D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107" ]
# allow notebook-style mid-file imports in paired examples
lint.per-file-ignores."docs/src/examples/learning_to_fly_with_ome-arrow.py" = [ "E402" ]
# ignore typing rules for tests
lint.per-file-ignores."tests/*" = [ "ANN201", "E501", "PLR0913", "PLR2004" ]
[tool.pytest]
ini_options.pythonpath = [ "." ]
[tool.jupytext]
formats = "ipynb,py:light"
[tool.vulture]
min_confidence = 90
paths = [ "src/ome_arrow", "tests" ]
[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"
[tool.poe]
# tasks for development environments
tasks.test.shell = """
pytest
"""
tasks.jupyter.shell = """
jupyter lab
"""