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
|
[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.8"
license = {text = "BSD-3-Clause"}
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"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.",
]
dependencies = [
"h5py>=2.10",
"jsonschema>=2.6.0",
'numpy>=1.18',
"pandas>=1.0.5",
"ruamel.yaml>=0.16",
"scipy>=1.4",
"importlib-resources; python_version < '3.9'", # TODO: remove when minimum python version is 3.9
]
dynamic = ["version"]
[project.optional-dependencies]
tqdm = ["tqdm>=4.41.0"]
termset = ["linkml-runtime>=1.5.5; python_version >= '3.9'",
"schemasheets>=0.1.23; python_version >= '3.9'",
"oaklib>=0.5.12; python_version >= '3.9'",
"pyyaml>=6.0.1; python_version >= '3.9'"]
[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"]
exclude = [
".git",
".tox",
"__pycache__",
"build/",
"dist/",
"src/hdmf/common/hdmf-common-schema",
"docs/source/conf.py",
"src/hdmf/_due.py",
"docs/source/tutorials/",
"docs/_build/",
]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"docs/gallery/*" = ["E402", "T201"]
"src/*/__init__.py" = ["F401"]
"setup.py" = ["T201"]
"test_gallery.py" = ["T201"]
[tool.ruff.lint.mccabe]
max-complexity = 17
|