-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
222 lines (201 loc) · 4.3 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
222
[project]
name = "npc_sessions"
version = "0.0.259"
description = "NWB-conversion for behavior and epyhys sessions from the Mindscope Neuropixels team, 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]" },
{ name = "Sam Gale", email = "[email protected]" },
{ name = "Christopher Mochizuki", email = "[email protected]" },
]
dependencies = [
"pandas>=2.0",
"pynwb>=2.8.2",
"rich>=13.5.2",
"zarr<2.18.1",
"matplotlib>=3.7.2",
"scipy>=1.9.3",
"DynamicRoutingTask<0.1.106",
"numba>=0.57.1",
"python-dotenv>=1.0.0",
"ndx-events>=0.2.0",
"hdmf>=3.14.0",
"ndx-pose>=0.1.1",
"tables>=3.9.2",
"aind-data-schema==1.1.1",
"pydantic>=2.6.4",
"npc-lims>=0.1.183",
"npc-sync>=0.1.19",
"npc-ephys>=0.1.30",
"npc-stim>=0.1.9",
"npc-samstim>=0.1.4",
"npc-session>=0.1.39",
"npc-mvr>=0.1.9",
"npc-io>=0.1.30",
]
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"
Issues = "https://github.com/AllenInstitute/npc_sessions/issues"
[tool.pdm]
plugins = [
"pdm-bump",
]
[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 = [
"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/plots",
"src/npc_sessions/scripts",
]
[build-system]
requires = [
"setuptools>=61",
"wheel",
]
build-backend = "setuptools.build_meta"