-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
133 lines (116 loc) · 3.11 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "jdb_to_nwb"
authors = [
{ name="Ryan Ly", email="rly@lbl.gov" },
{ name="Stephanie Crater", email="stephcrater@berkeley.edu" },
{ name="Yang-Sun Hwang", email="YangSun.Hwang@ucsf.edu"},
{ name="Jose Figueroa", email="Jose.Figueroa@ucsf.edu" },
]
description = "Converts electrophysiology, photometry, and behavioral data for the hex maze task used by the Berke Lab at UCSF to NWB format for sharing and analysis."
readme = "README.md"
requires-python = ">=3.12"
license = {text = "BSD-3-Clause"}
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Development Status :: 2 - Pre-Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
]
dependencies = [
"spikeinterface >= 0.101.0",
"tqdm",
"neuroconv",
"pynwb >= 2.8.1",
"ndx_fiber_photometry",
"ndx_franklab_novela",
"scikit-learn",
"matplotlib",
"ffmpeg",
"tables",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"black",
"ruff",
"codespell",
"tqdm",
]
test = ["pytest", "pytest-cov"]
[project.urls]
"Homepage" = "https://github.com/calderast/jdb_to_nwb/"
"Bug Tracker" = "https://github.com/calderast/jdb_to_nwb/issues"
[project.scripts]
jdb_to_nwb = "jdb_to_nwb.convert:cli"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
# this file is created/updated when the package is installed and used in
# src/jdb_to_nwb/__init__.py to set `jdb_to_nwb.__version__`
version-file = "src/jdb_to_nwb/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [
".git*",
".codecov.yml",
".readthedocs.yaml",
".pre-commit-config.yaml",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/jdb_to_nwb",
"resources",
]
exclude = [
".git*",
".codecov.yml",
".readthedocs.yaml",
".pre-commit-config.yaml",
]
# Rewrite the path to the `resources` directory to `jdb_to_nwb/resources`.
# `jdb_to_nwb/__init__.py` will look there first for the spec files.
# The resulting directory structure within the wheel will be:
# jdb_to_nwb/
# ├── __init__.py
# ├── resources/
# └── plotting
[tool.hatch.build.targets.wheel.sources]
"resources" = "jdb_to_nwb/resources"
# [tool.interrogate]
# fail-under = 95
# verbose = 1
[tool.codespell]
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,./tests/test_data/*,*.h264"
ignore-words-list = "datas,assertIn,lockin,SEMs"
[tool.coverage.run]
branch = true
source = ["jdb_to_nwb"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract"
]
[tool.black]
line-length = 120
preview = true
exclude = ".git|.mypy_cache|.tox|.venv|venv|.ipynb_checkpoints|_build/|dist/|__pypackages__|.ipynb"
[tool.ruff]
lint.select = ["E", "F", "T100", "T203"]
exclude = [
".git",
".tox",
"__pycache__",
"build/",
"dist/",
"*.ipynb",
]
line-length = 120
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.mccabe]
max-complexity = 17