-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
221 lines (199 loc) · 4.42 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[project]
name = "npc_sessions_cache"
version = "0.0.1"
description = "Scripts, notebooks and plots that operate on NWB or NWB-like objects from `npc_sessions` in the cloud."
authors = [
{ name = "Ben Hardcastle", email = "[email protected]" },
{ name = "Arjun Sridhar", email = "[email protected]" },
{ name = "Ethan McBride", email = "[email protected]" },
{ name = "Corbett Bennett", email = "[email protected]" },
]
dependencies = [
"ipykernel>=6.25.2",
"nbconvert>=7.9.2",
"traitlets<=5.9.0",
"ipympl>=0.9.3",
"ipywidgets>=8.1.0",
"npc-sessions>=0.0.251",
"npc-sync>=0.1.16",
"npc-lims>=0.1.174",
"dynamic-routing-analysis @ git+https://github.com/AllenInstitute/dynamic_routing_analysis",
"hvplot>=0.10.0",
"pynrrd>=1.0.0",
"matplotlib<=3.8.4",
"aind-session>=0.2.1",
"pyarrow>=14.0",
"eval-type-backport>=0.2.0",
"npc-samstim>=0.1.8",
"polars>=1.9.0",
]
requires-python = ">=3.9"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
[project.license]
text = "MIT"
[project.urls]
Repository = "https://github.com/AllenInstitute/npc_sessions_cache"
Issues = "https://github.com/AllenInstitute/npc_sessions_cache/issues"
[project.scripts]
write_dataframes = "npc_sessions_cache.scripts.write_dataframes:main"
write_notebooks = "npc_sessions_cache.scripts.write_notebooks:main"
write_cache = "npc_sessions_cache.scripts.write_sessions_to_cache:main"
[tool.pdm]
plugins = [
"pdm-bump",
]
[tool.pdm.resolution.overrides]
polars = ">=0.2"
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.4.0",
"ruff>=0.0.282",
"mypy>=1.4.1",
"pytest-cov>=4.1.0",
"black>=23.7.0",
"pytest-xdist>=3.3.1",
]
[tool.pdm.scripts]
ruff = "ruff check src --fix-only"
black = "black src"
test = "pytest --cov --cov-report=xml"
mypy = "mypy src --install-types --non-interactive"
[tool.pdm.scripts.prebuild]
composite = [
"mypy",
"test",
"black",
"ruff",
]
[tool.pdm.scripts.dryrun]
composite = [
"prebuild",
"pdm publish --repository testpypi",
]
[tool.pdm.scripts.bumpver]
composite = [
"pdm self add pdm-bump",
"pdm bump micro",
]
[tool.pdm.scripts.tag]
composite = [
"pdm self add pdm-bump",
"pdm bump tag",
]
[tool.pdm.scripts.pub]
composite = [
"prebuild",
"bumpver",
"pdm publish",
]
[tool.setuptools.packages.find]
where = [
"src",
]
[tool.setuptools.package-data]
npc_sessions_cache = [
"py.typed",
"notebooks/*.ipynb",
]
[tool.ruff]
fix = true
ignore-init-module-imports = true
select = [
"ANN",
"B",
"C",
"E",
"F",
"I",
"RUF100",
"N",
"UP",
"W",
"YTT",
]
extend-exclude = [
"tests",
]
src = [
"src",
"tests",
]
target-version = "py39"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.black]
target-version = [
"py39",
]
[tool.coverage.paths]
source = [
"src",
]
[tool.coverage.run]
branch = true
source = [
"src",
]
[tool.coverage.report]
skip_covered = true
show_missing = true
skip_empty = true
exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc.)?abstractmethod",
"@typing.runtime_checkable",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--doctest-modules",
"--ignore-glob=*scripts*,*examples*",
"--cov",
"--cov-report=xml",
"--cov-config=pyproject.toml",
"--doctest-glob=*README.md",
"-x",
"-n=auto",
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS",
]
testpaths = [
"src",
"tests",
]
[tool.mypy]
check_untyped_defs = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_decorators = false
disallow_any_unimported = false
warn_return_any = false
warn_unused_ignores = true
no_implicit_optional = true
show_error_codes = true
ignore_missing_imports = true
implicit_reexport = false
exclude = [
"src/npc_sessions_cache/plots",
"src/npc_sessions_cache/scripts",
]
[build-system]
requires = [
"setuptools>=61",
"wheel",
]
build-backend = "setuptools.build_meta"