| 1 |
[build-system] |
| 2 |
requires = ["hatchling", "hatch-vcs"] |
| 3 |
build-backend = "hatchling.build" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "hdmf" |
| 7 |
authors = [ |
| 8 |
{ name="Ryan Ly", email="[email protected]" }, |
| 9 |
{ name="Andrew Tritt", email="[email protected]" }, |
| 10 |
{ name="Oliver Ruebel", email="[email protected]" }, |
| 11 |
{ name="Ben Dichter", email="[email protected]" }, |
| 12 |
{ name="Matthew Avaylon", email="[email protected]" }, |
| 13 |
] |
| 14 |
description = "A hierarchical data modeling framework for modern science data standards" |
| 15 |
readme = "README.rst" |
| 16 |
requires-python = ">=3.8" |
| 17 |
license = {text = "BSD-3-Clause"} |
| 18 |
classifiers = [ |
| 19 |
"Programming Language :: Python", |
| 20 |
"Programming Language :: Python :: 3.8", |
| 21 |
"Programming Language :: Python :: 3.9", |
| 22 |
"Programming Language :: Python :: 3.10", |
| 23 |
"Programming Language :: Python :: 3.11", |
| 24 |
"Programming Language :: Python :: 3.12", |
| 25 |
"License :: OSI Approved :: BSD License", |
| 26 |
"Development Status :: 5 - Production/Stable", |
| 27 |
"Operating System :: OS Independent", |
| 28 |
"Intended Audience :: Developers", |
| 29 |
"Intended Audience :: Science/Research", |
| 30 |
"Topic :: Scientific/Engineering :: Medical Science Apps.", |
| 31 |
] |
| 32 |
dependencies = [ |
| 33 |
"h5py>=2.10", |
| 34 |
"jsonschema>=2.6.0", |
| 35 |
'numpy>=1.18', |
| 36 |
"pandas>=1.0.5", |
| 37 |
"ruamel.yaml>=0.16", |
| 38 |
"scipy>=1.4", |
| 39 |
"importlib-resources; python_version < '3.9'", # TODO: remove when minimum python version is 3.9 |
| 40 |
] |
| 41 |
dynamic = ["version"] |
| 42 |
|
| 43 |
[project.optional-dependencies] |
| 44 |
tqdm = ["tqdm>=4.41.0"] |
| 45 |
termset = ["linkml-runtime>=1.5.5; python_version >= '3.9'", |
| 46 |
"schemasheets>=0.1.23; python_version >= '3.9'", |
| 47 |
"oaklib>=0.5.12; python_version >= '3.9'", |
| 48 |
"pyyaml>=6.0.1; python_version >= '3.9'"] |
| 49 |
|
| 50 |
[project.urls] |
| 51 |
"Homepage" = "https://github.com/hdmf-dev/hdmf" |
| 52 |
"Bug Tracker" = "https://github.com/hdmf-dev/hdmf/issues" |
| 53 |
|
| 54 |
[project.scripts] |
| 55 |
validate_hdmf_spec = "hdmf.testing.validate_spec:main" |
| 56 |
|
| 57 |
[tool.hatch.version] |
| 58 |
source = "vcs" |
| 59 |
|
| 60 |
[tool.hatch.build.hooks.vcs] |
| 61 |
# this file is created/updated when the package is installed and used in |
| 62 |
# src/hdmf/__init__.py to set `hdmf.__version__` |
| 63 |
version-file = "src/hdmf/_version.py" |
| 64 |
|
| 65 |
[tool.hatch.build.targets.sdist] |
| 66 |
exclude = [ |
| 67 |
".git*", |
| 68 |
".codecov.yml", |
| 69 |
".readthedocs.yaml", |
| 70 |
".mailmap", |
| 71 |
".pre-commit-config.yaml", |
| 72 |
] |
| 73 |
|
| 74 |
[tool.hatch.build.targets.wheel] |
| 75 |
packages = ["src/hdmf"] |
| 76 |
exclude = [ |
| 77 |
".git*", |
| 78 |
".codecov.yml", |
| 79 |
".readthedocs.yaml", |
| 80 |
".mailmap", |
| 81 |
".pre-commit-config.yaml", |
| 82 |
] |
| 83 |
|
| 84 |
# [tool.mypy] |
| 85 |
# no_incremental = true # needed b/c mypy and ruamel.yaml do not play nice. https://github.com/python/mypy/issues/12664 |
| 86 |
|
| 87 |
# [tool.interrogate] |
| 88 |
# fail-under = 95 |
| 89 |
# verbose = 1 |
| 90 |
|
| 91 |
[tool.pytest.ini_options] |
| 92 |
norecursedirs = "tests/unit/helpers" |
| 93 |
|
| 94 |
[tool.codespell] |
| 95 |
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,hdmf-common-schema,./docs/_build/*,*.ipynb" |
| 96 |
ignore-words-list = "datas,assertIn" |
| 97 |
|
| 98 |
[tool.coverage.run] |
| 99 |
branch = true |
| 100 |
source = ["hdmf"] |
| 101 |
|
| 102 |
[tool.coverage.report] |
| 103 |
exclude_lines = [ |
| 104 |
"pragma: no cover", |
| 105 |
"@abstract" |
| 106 |
] |
| 107 |
omit = [ |
| 108 |
"*/hdmf/_due.py", |
| 109 |
"*/hdmf/testing/*", |
| 110 |
] |
| 111 |
|
| 112 |
# [tool.black] |
| 113 |
# line-length = 120 |
| 114 |
# preview = true |
| 115 |
# exclude = ".git|.mypy_cache|.tox|.venv|venv|.ipynb_checkpoints|_build/|dist/|__pypackages__|.ipynb" |
| 116 |
# force-exclude = "src/hdmf/common/hdmf-common-schema|docs/gallery" |
| 117 |
|
| 118 |
[tool.ruff] |
| 119 |
lint.select = ["E", "F", "T100", "T201", "T203"] |
| 120 |
exclude = [ |
| 121 |
".git", |
| 122 |
".tox", |
| 123 |
"__pycache__", |
| 124 |
"build/", |
| 125 |
"dist/", |
| 126 |
"src/hdmf/common/hdmf-common-schema", |
| 127 |
"docs/source/conf.py", |
| 128 |
"src/hdmf/_due.py", |
| 129 |
"docs/source/tutorials/", |
| 130 |
"docs/_build/", |
| 131 |
] |
| 132 |
line-length = 120 |
| 133 |
|
| 134 |
[tool.ruff.lint.per-file-ignores] |
| 135 |
"docs/gallery/*" = ["E402", "T201"] |
| 136 |
"src/*/__init__.py" = ["F401"] |
| 137 |
"setup.py" = ["T201"] |
| 138 |
"test_gallery.py" = ["T201"] |
| 139 |
|
| 140 |
[tool.ruff.lint.mccabe] |
| 141 |
max-complexity = 17 |