forked from alan-turing-institute/affinity-vae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
156 lines (137 loc) · 3.65 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
requires = ["setuptools>=61.2", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "affinivae"
version = "0.0.1"
description = "Affinity-VAE"
authors = [{name = "Alan R. Lowe", email = "alowe@turing.ac.uk"}]
license = {text = "BSD 3-Clause"}
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
requires-python = ">=3.10"
dependencies = [
"altair",
"click",
"mrcfile",
"matplotlib",
"numpy",
"scipy",
"pillow",
"pandas",
"pyyaml",
"requests",
"scikit-image",
"scikit-learn",
"tensorboard",
"umap-learn",
"caked@git+https://github.com/alan-turing-institute/caked/" #to be changed when caked is in pypi.
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/alan-turing-institute/affinity-vae"
[tool.hatch]
version.path = "avae/__init__.py"
envs.default.dependencies = [
"pytest",
"pytest-cov",
]
[project.optional-dependencies]
all = ["torch",
"torchvision",
"pydantic>2",
"lightning",
]
test = [
"affinivae[all]",
"pytest >=6",
"pytest-cov >=3",
"lightning",
]
baskerville = [
"pydantic>2",
"lightning",
]
napari = [
"napari[all]",
"torch",
"torchvision",
"pydantic<2", # latest napari version is incompatible with napari, napari demo doesnt use pydantic.
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals"]#, "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [ # NEED TO FIX THESE WARNINGS ISSUE X
"error",
"ignore:jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the:DeprecationWarning",
"ignore:The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator.",
"ignore:Tensorflow not installed; ParametricUMAP will be unavailable",
"ignore:pkg_resources is deprecated as an API",
"ignore:Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`",
"ignore:The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later.",
"ignore:Maximum iterations (500) reached and the optimization hasn't converged yet", # FIX THESE WARNINGS ISSUE x
"ignore:Could not initialize NNPACK!.",
"ignore:Mean of empty slice.",
"ignore:invalid value encountered in divide",
"ignore:Degrees of freedom <= 0 for slice",
"ignore:Scoring failed. The score on this train-test partition for these parameters will be set to nan.",
"ignore:One or more of the test scores are non-finite:",
]
log_cli_level = "INFO"
testpaths = [
"tests",
]
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE.md"]
[tool.setuptools.packages]
find = {namespaces = false}
[tool.tox]
isolated_build = "true"
[tool.tox.envlist]
extend-ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
]
src = ["avae"]
unfixable = [
"F841", # Would remove unused variables
]
exclude = []
flake8-unused-arguments.ignore-variadic-names = true
[tool.black]
target-version = ['py38', 'py39', 'py310']
line-length = 79
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
| examples
)/
)
'''
[tool.isort]
profile = "black"
line_length = 79