-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (124 loc) · 3.17 KB
/
pyproject.toml
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
# https://peps.python.org/pep-0517/
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# read more about configuring hatch at:
# https://hatch.pypa.io/latest/config/build/
# https://hatch.pypa.io/latest/config/metadata/
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.hatch.envs.default.env-vars]
SAM2_BUILD_CUDA="0"
# https://peps.python.org/pep-0621/
[project]
name = "featureforest"
dynamic = ["version"]
description = "A napari plugin for segmentation using vision transformer features"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Mehdi Seifi", email = "mehdi.seifi@fht.org" },
{ name = "Vera Galinova", email = "vera.galinova@fht.org" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: napari",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"numpy==1.24.4",
"opencv-python",
"scikit-learn",
"scikit-image",
"matplotlib",
"pynrrd",
"PyQt5",
"magicgui",
"qtpy",
"napari",
"h5py",
"pooch",
"iopath>=0.1.10",
"torch==2.3.1",
"torchvision==0.18.1",
"timm==1.0.9",
"segment-anything-py",
# "sam-2 @ git+https://github.com/facebookresearch/sam2.git"
]
[project.optional-dependencies]
# development dependencies and tooling
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"tox",
"tox-gh-actions",
"sybil", # doctesting
]
[project.urls]
homepage = "https://featureforest.github.io/"
repository = "https://github.com/juglab/featureforest"
[project.entry-points."napari.manifest"]
featureforest = "featureforest:napari.yaml"
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.black]
line-length = 90
target-version = ["py310", "py311", "py312"]
[tool.ruff]
line-length = 90
target-version = "py310"
src = ["src"]
select = [
"E", "F", "W", #flake8
"UP", # pyupgrade
"I", # isort
"BLE", # flake8-blind-exception
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long. let black handle this
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".mypy_cache",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"*vendored*",
"*_vendor*",
]
show-fixes = true