Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (124 loc) · 3.2 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (124 loc) · 3.2 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
[project]
name = "transformnd"
version = "0.10.1"
description = "ND coordinate transformations"
readme = "README.md"
authors = [{ name = "Chris Barnes", email = "chris.barnes@gerbi-gmb.de" }]
requires-python = ">=3.12, <4.0"
dependencies = [
"numpy>=2",
"networkx>=3",
"array_api_compat>=1.14",
"typing-extensions>=4.15.0",
]
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Processing",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
[project.urls]
documentation = "https://transformnd.readthedocs.io/en/latest/"
source = "https://github.com/clbarnes/transformnd"
issues = "https://github.com/clbarnes/transformnd/issues"
[project.optional-dependencies]
thinplatesplines = [
"morphops>=0.1.13",
]
movingleastsquares = ["molesq>=0.4.0"]
pandas = ["pandas>=3.0.2"]
shapely = ["shapely>=2.2"]
polars = [
"polars>=1.40.1",
]
vectorfield = [
"scipy>=1.17.1",
]
vectorfield-dask = [
"dask>=2026.3.0",
"dask-image>=2026.5.0",
]
transforms = [
"transformnd[thinplatesplines]",
"transformnd[movingleastsquares]",
"transformnd[vectorfield]",
"transformnd[vectorfield-dask]",
]
adapters = ["transformnd[pandas]", "transformnd[shapely]", "transformnd[polars]"]
all = ["transformnd[transforms]", "transformnd[adapters]"]
[dependency-groups]
dev = [
{include-group = "test"},
{include-group = "lint"},
{include-group = "doc"},
{include-group = "examples"},
{include-group = "bench"},
"prek>=0.3.11",
"rust-just>=1.58.0",
]
test = [
"pytest",
"jax>=0.12",
"dask>=2026.3.0",
]
lint = [
"ruff",
"mypy",
"prek>=0.3.9",
"types-shapely>=2.1.0.20260408",
"pydoclint>=0.8.6",
]
examples = [
"matplotlib>=3.10.8",
"pandas>=3.0.2",
"pooch>=1.9.0",
"scikit-image>=0.26.0",
"jupytext>=1.19.6",
"ipykernel>=7.4.0",
"scipy",
]
doc = [
"pdoc>=16.0.0",
"nbconvert>=7.17.1",
{include-group = "examples"},
]
bench = [
"pytest-benchmark>=5.2.3",
]
[build-system]
requires = ["uv-build>=0.12.10,<0.13.0"]
build-backend = "uv_build"
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
[tool.pytest]
testpaths = ["tests", "bench"]
addopts = ["--benchmark-skip"]
[tool.pydoclint]
arg-type-hints-in-docstring = false
allow-init-docstring = true
[tool.ruff.lint]
external = [
"DOC", # pydoclint
"D", # pydocstyle
]
ignore = [
# Would ban dict() in favour of {};
# I prefer dict() to distinguish from set literals.
"C408",
# Prefers type parameters instead of inheriting from Generic[typevar].
# Currently, we need to use typevars because we python 3.12 doesn't support default type parameters.
# Should be revisited when python 3.12 is deprecated.
"UP046",
]
[tool.ruff.lint.extend-per-file-ignores]
"examples/*.py" = ["E402"]