-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (157 loc) · 4.84 KB
/
pyproject.toml
File metadata and controls
170 lines (157 loc) · 4.84 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[project]
name = "bioimageio.core"
description = "Python specific core utilities for bioimage.io resources (in particular DL models)."
authors = [{ name = "Fynn Beuttenmüller", email = "thefynnbe@gmail.com" }]
requires-python = ">=3.9"
readme = "README.md"
dynamic = ["version"]
dependencies = [
"bioimageio.spec ==0.5.9.1",
"imagecodecs",
"imageio>=2.10",
"loguru",
"numpy",
"pydantic-settings>=2.5,<3",
"pydantic>=2.7.0,<3",
"ruyaml",
"scipy",
"tqdm",
"typing-extensions",
"xarray>=2023.01",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.scripts]
bioimageio = "bioimageio.core.__main__:main"
[project.urls]
"Bug Reports" = "https://github.com/bioimage-io/core-bioimage-io-python/issues"
Changelog = "https://github.com/bioimage-io/core-bioimage-io-python?tab=readme-ov-file#changelog"
Documentation = "https://bioimage-io.github.io/core-bioimage-io-python/bioimageio/core.html"
Source = "https://github.com/bioimage-io/core-bioimage-io-python"
[project.optional-dependencies]
onnx = [
"onnxruntime",
"onnxscript",
'onnx_ir!=0.1.14;python_version<"3.10"', # uses typing.Concatentate which requires py>=3.10
]
pytorch = ["torch>=1.6,<3", "torchvision>=0.21", "keras>=3.0,<4"]
tensorflow = ["tensorflow", "keras>=2.15,<4", "h5py"]
partners = [
# "biapy", # pins core exactly
"careamics",
# "stardist", # for model testing and stardist postprocessing # TODO: add updated stardist to partners env
]
stardist = ["stardist"] # for stardist postprocessing
dev = [
"cellpose", # for model testing
"crick",
"httpx",
"jax",
"jupyter",
"keras>=3.0,<4",
"matplotlib",
"monai", # for model testing
"numpy",
"onnx",
"onnxruntime",
"onnxscript",
'onnx_ir!=0.1.14;python_version<"3.10"', # uses typing.Concatentate which requires py>=3.10
"packaging>=17.0",
"pre-commit",
"pyright==1.1.408",
"pytest-cov",
"pytest",
"python-dotenv",
"segment-anything", # for model testing
"stardist",
"tensorflow",
"timm", # for model testing
"torch>=1.6,<3",
"torchvision>=0.21",
]
docs = [
"griffe-pydantic",
"griffe-inherited-docstrings",
"griffe-public-redundant-aliases",
"markdown-callouts",
"markdown-exec[ansi]",
"markdown-pycon",
"mike",
"mkdocs-api-autonav",
"mkdocs-coverage",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
]
[build-system]
requires = ["pip", "setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src/"]
[tool.setuptools.dynamic]
version = { attr = "bioimageio.core.__version__" }
[tool.pylance]
languageServerMode = "light"
[tool.pyright]
exclude = [
"**/.*",
"**/__pycache__",
"**/node_modules",
"dogfood",
"presentations",
"scripts/generate_api_doc_pages.py",
"tests/old_*",
]
include = ["src", "scripts", "tests"]
pythonPlatform = "All"
pythonVersion = "3.9"
reportDuplicateImport = "error"
reportImplicitStringConcatenation = "error"
reportIncompatibleMethodOverride = true
reportMatchNotExhaustive = "error"
reportMissingSuperCall = "error"
reportMissingTypeArgument = true
reportMissingTypeStubs = "warning"
reportPropertyTypeMismatch = "error"
reportUninitializedInstanceVariable = "error"
reportUnknownMemberType = false
reportUnnecessaryIsInstance = false
reportUnnecessaryTypeIgnoreComment = "error"
reportUnsupportedDunderAll = "error"
reportUnusedCallResult = "error"
reportUnusedClass = "error"
reportUnusedExpression = "error"
reportUnusedFunction = "error"
reportUnusedVariable = "error"
reportWildcardImportFromLibrary = "error"
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
extraPaths = ["../spec-bioimage-io/src"] # co-develop with bioimageio.spec
[tool.pytest.ini_options]
addopts = "--doctest-modules --failed-first --ignore dogfood --ignore src/bioimageio/core/backends --ignore src/bioimageio/core/weight_converters --ignore scripts/generate_api_doc_pages.py"
testpaths = ["src", "tests"]
[tool.ruff]
line-length = 88
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
exclude = [
"presentations",
"scripts/pdoc/original.py",
"scripts/pdoc/patched.py",
]
[tool.ruff.lint]
extend-select = ["NPY201"]
[tool.ruff.lint.isort]
known-first-party = ["bioimageio"]
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "assert_never\\("]
[tool.coverage.run]
patch = ["subprocess"]