-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpyproject.toml
175 lines (153 loc) · 4.33 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "hdmf"
authors = [
{ name="Ryan Ly", email="rly@lbl.gov" },
{ name="Andrew Tritt", email="ajtritt@lbl.gov" },
{ name="Oliver Ruebel", email="oruebel@lbl.gov" },
{ name="Ben Dichter", email="ben.dichter@gmail.com" },
{ name="Matthew Avaylon", email="mavaylon@lbl.gov" },
]
description = "A hierarchical data modeling framework for modern science data standards"
readme = "README.rst"
requires-python = ">=3.9"
license = "BSD-3-Clause"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
# make sure to update min-reqs dependencies below when these lower bounds change
dependencies = [
"h5py>=3.1.0",
"jsonschema>=3.2.0",
'numpy>=1.19.3',
"pandas>=1.2.0",
"ruamel.yaml>=0.16",
]
dynamic = ["version"]
[project.optional-dependencies]
# make sure to update min-reqs dependencies below when these lower bounds change
tqdm = ["tqdm>=4.41.0"]
zarr = ["zarr>=2.12.0,<3"]
sparse = ["scipy>=1.7"]
termset = [
"linkml-runtime>=1.5.5",
"schemasheets>=0.1.23",
"oaklib>=0.5.12",
"pyyaml>=6.0.1",
]
# development dependencies
test = [
"codespell",
"pre-commit",
"pytest",
"pytest-cov",
"python-dateutil",
"ruff",
"tox",
]
# documentation dependencies
docs = [
"matplotlib",
"sphinx>=4", # improved support for docutils>=0.17
"sphinx_rtd_theme>=1", # <1 does not work with docutils>=0.17
"sphinx-gallery",
"sphinx-copybutton",
]
# all possible dependencies
all = ["hdmf[tqdm,zarr,sparse,termset,test,docs]"]
# minimum requirements of project dependencies for testing (see .github/workflows/run_all_tests.yml)
min-reqs = [
"h5py==3.1.0",
"jsonschema==3.2.0",
"numpy==1.19.3",
"pandas==1.2.0",
"ruamel.yaml==0.16.0",
"scipy==1.7.0",
"tqdm==4.41.0",
"zarr==2.12.0",
]
[project.urls]
"Homepage" = "https://github.com/hdmf-dev/hdmf"
"Bug Tracker" = "https://github.com/hdmf-dev/hdmf/issues"
[project.scripts]
validate_hdmf_spec = "hdmf.testing.validate_spec:main"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
# this file is created/updated when the package is installed and used in
# src/hdmf/__init__.py to set `hdmf.__version__`
version-file = "src/hdmf/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [
".git*",
".codecov.yml",
".readthedocs.yaml",
".mailmap",
".pre-commit-config.yaml",
]
[tool.hatch.build.targets.wheel]
packages = ["src/hdmf"]
exclude = [
".git*",
".codecov.yml",
".readthedocs.yaml",
".mailmap",
".pre-commit-config.yaml",
]
# [tool.mypy]
# no_incremental = true # needed b/c mypy and ruamel.yaml do not play nice. https://github.com/python/mypy/issues/12664
# [tool.interrogate]
# fail-under = 95
# verbose = 1
[tool.pytest.ini_options]
norecursedirs = "tests/unit/helpers"
[tool.codespell]
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,hdmf-common-schema,./docs/_build/*,*.ipynb"
ignore-words-list = "datas,assertIn"
[tool.coverage.run]
branch = true
source = ["hdmf"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract"
]
omit = [
"*/hdmf/_due.py",
"*/hdmf/testing/*",
]
# [tool.black]
# line-length = 120
# preview = true
# exclude = ".git|.mypy_cache|.tox|.venv|venv|.ipynb_checkpoints|_build/|dist/|__pypackages__|.ipynb"
# force-exclude = "src/hdmf/common/hdmf-common-schema|docs/gallery"
[tool.ruff]
lint.select = ["E", "F", "T100", "T201", "T203", "C901"]
exclude = [
"src/hdmf/common/hdmf-common-schema",
"docs/source/conf.py",
"src/hdmf/_due.py",
"docs/source/tutorials/",
"docs/_build/",
"scripts/"
]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"docs/gallery/*" = ["E402", "T201"]
"src/*/__init__.py" = ["F401"]
"test_gallery.py" = ["T201"]
[tool.ruff.lint.mccabe]
max-complexity = 17