-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
181 lines (160 loc) · 3.94 KB
/
Copy pathpyproject.toml
File metadata and controls
181 lines (160 loc) · 3.94 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/nwb2bids"]
[project]
name = "nwb2bids"
authors = [
{ name="Cody Baker", email="cody.c.baker.phd@gmail.com" },
]
description = "Reorganize NWB files into a BIDS directory layout."
readme = "README.md"
keywords = [
"data standards",
"data organization",
"BIDS",
"Brain Imaging Data Structure",
"NWB",
"NeurodataWithoutBorders",
"DANDI Archive",
"neurodata",
"neuroscience",
]
license = {file = "LICENSE.txt"}
requires-python = ">=3.10"
dependencies = [
"pandas",
"pynwb",
"requests",
"rich-click",
"pydantic",
"tqdm",
"typing-extensions", # TODO: remove when dropping support for Python 3.10
"ruamel.yaml~=0.18.15", # https://sourceforge.net/p/ruamel-yaml-clib/tickets/47/
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: MIT License",
]
dynamic = ["version"]
[project.optional-dependencies]
dandi = [
"dandi",
"remfile",
]
all = [
"nwb2bids[dandi]",
]
[project.urls]
Repository = "https://github.com/con/nwb2bids/"
Issues = "https://github.com/con/nwb2bids/issues"
Changelog = "https://github.com/con/nwb2bids/blob/main/CHANGELOG.md"
[project.scripts]
nwb2bids = "nwb2bids._command_line_interface._main:_nwb2bids_cli"
[dependency-groups]
type-stubs = ["pandas-stubs", "types-requests"]
test = ["pytest", "datalad", "git-annex", "sybil"]
coverage = [{include-group = "test"}, "pytest-cov"]
dev = [{include-group = "type-stubs"}, {include-group = "test"}, "ipython", "pre-commit"]
types = [{include-group = "type-stubs"}, {include-group = "test"}, "mypy"]
docs = [
"sphinx",
"sphinx-tabs",
"pydata-sphinx-theme",
"sphinx-copybutton",
"sphinx-toggleprompt",
"myst-parser",
"pytest", # For running doc tests
"sybil", # For testing code blocks in docs
"sphinxcontrib-googleanalytics",
]
dev-all = [
{include-group = "type-stubs"},
{include-group = "test"},
{include-group = "coverage"},
{include-group = "dev"},
{include-group = "types"},
{include-group = "docs"},
]
[tool.black]
line-length = 120
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
\.toml
|\.yml
|\.txt
|\.sh
|\.git
|\.ini
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
plugins = ["pydantic.mypy"]
disable_error_code = ["prop-decorator"]
[[tool.mypy.overrides]]
module = [
"dandi.*",
"datalad.*",
"h5py",
"py.*",
"pynwb.*",
"remfile",
]
ignore_missing_imports = true
[tool.ruff]
exclude = [
"*/__init__.py"
]
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "I"]
ignore = [
"PTH123",
"D203",
"D212",
"T201",
"FIX002",
"TD003",
"TD002",
"S101",
"ICN001",
"INP001",
]
fixable = ["ALL"]
[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"
known-first-party = ["nwb2bids"]
[tool.ruff.lint.per-file-ignores]
"src/nwb2bids/_hidden_top_level_imports.py" = ["F401"] # Must perform imports here even if not exposed
[tool.pytest.ini_options]
markers = [
"remote: mark a test as requiring remote resources",
"container_cli_test: mark a test as suitable for container CLI testing",
"ai_generated: mark a test as written entirely by an AI agent",
]
addopts = "-ra"
testpaths = ["tests"]
doctest_optionflags = "ELLIPSIS"