Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (112 loc) · 4.78 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (112 loc) · 4.78 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling", "uv-dynamic-versioning" ]
[project]
name = "viscy"
description = "Virtual staining for microscopy - umbrella package"
readme = "README.md"
keywords = [ "deep learning", "microscopy", "pytorch", "virtual staining" ]
license = "BSD-3-Clause"
authors = [ { name = "Biohub", email = "compmicro@czbiohub.org" } ]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
]
dynamic = [ "version" ]
dependencies = [ "viscy-data", "viscy-models", "viscy-transforms", "viscy-utils" ]
urls.Homepage = "https://github.com/Biohub/VisCy"
urls.Issues = "https://github.com/Biohub/VisCy/issues"
urls.Repository = "https://github.com/Biohub/VisCy"
[dependency-groups]
dev = [ { include-group = "jupyter" }, { include-group = "test" } ]
test = [ "pytest>=9.0.2", "pytest-cov>=7", "pytest-xdist>=3.8" ]
jupyter = [ "ipykernel>=7.1", "jupyterlab>=4.5.3" ]
doc = [
"mike @ git+https://github.com/squidfunk/mike.git",
"mkdocstrings-python",
"zensical",
]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.targets.wheel]
packages = [ "src/viscy" ]
[tool.uv]
package = true
[tool.uv.workspace]
members = [ "packages/*", "applications/*" ]
exclude = [ "applications/benchmarking" ]
[tool.uv.sources]
viscy-data = { workspace = true }
viscy-models = { workspace = true }
viscy-transforms = { workspace = true }
viscy-utils = { workspace = true }
dynaclr = { workspace = true }
cytoland = { workspace = true }
airtable-utils = { workspace = true }
viscy-qc = { workspace = true }
dynacell = { workspace = true }
waveorder = { git = "https://github.com/Biohub/waveorder.git", branch = "main" }
aicssegmentation = { git = "https://github.com/alxndrkalinin/aics-segmentation.git", branch = "main" }
segmenter-model-zoo = { git = "https://github.com/alxndrkalinin/segmenter_model_zoo.git", branch = "main" }
aicsmlsegment = { git = "https://github.com/alxndrkalinin/aics-ml-segmentation.git", branch = "main" }
# RAPIDS publishes cucim's CUDA-13 wheels only to the NVIDIA index (the PyPI
# cucim-cu13 entry is an sdist stub with no binary wheel); pull it from there.
cucim-cu13 = { index = "nvidia" }
[[tool.uv.index]]
name = "nvidia"
url = "https://pypi.nvidia.com"
explicit = true
[tool.ruff]
target-version = "py312"
line-length = 120
indent-width = 4
src = [ "applications/*/src", "packages/*/src" ]
format.indent-style = "space"
format.quote-style = "double"
format.skip-magic-trailing-comma = false
format.docstring-code-line-length = "dynamic"
format.docstring-code-format = true
lint.select = [ "D", "E", "F", "I", "NPY", "PD", "W" ]
lint.per-file-ignores."**/*.ipynb" = [ "D", "E402", "E501", "PD" ]
lint.per-file-ignores."**/__init__.py" = [ "D104", "F401" ]
lint.per-file-ignores."**/docs/**" = [ "I" ]
lint.per-file-ignores."**/evaluation/**" = [ "D", "E501", "NPY002", "PD011" ]
lint.per-file-ignores."**/examples/**" = [ "D", "E402", "E501", "F821" ]
lint.per-file-ignores."**/tests/**" = [ "D" ]
lint.pydocstyle.convention = "numpy"
[tool.pytest.ini_options]
minversion = "9.0"
testpaths = [ "packages/*/tests", "applications/*/tests" ]
addopts = [ "-ra", "-q", "--import-mode=importlib", "-m", "not slow" ]
pythonpath = [ "applications/dynacell/tools", "applications/dynacell/examples/hf_demo" ]
# Set as an ini option, NOT as --strict-markers in addopts. pytest >= 9 backs the
# flag with this ini option and only honours the flag from the command line — in
# addopts it parses (config.option.strict_markers reads True) but never enforces,
# so an unregistered marker still merely warns. Verified on pytest 9.0.3.
strict_markers = true
markers = [
# strict_markers above turns an unregistered marker into a collection error.
# Without it a typo'd or invented marker silently decorates nothing, so the
# test it was meant to gate runs anyway (and asserts on whatever the shared
# HPC tree happens to hold).
#
# Register every marker HERE, not via addinivalue_line in an application
# conftest: that only registers when the conftest is in the invocation's
# ancestry, so a marked test outside that app collects fine from the repo root
# and errors when run as a single file.
"slow: marks tests requiring GPU/HPC resources or live HPC data (deselect with -m 'not slow')",
"hpc_integration: requires HPC data paths and a CUDA GPU",
]
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
fallback-version = "0.0.0"