-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] # hatchling for build | hatch-vcs for versioning | ||
build-backend = "hatchling.build" # the build backend used | ||
|
||
[project] | ||
name = "pynwb" | ||
authors = [ | ||
{ name="Andrew Tritt", email="[email protected]" }, | ||
{ name="Ryan Ly", email="[email protected]" }, | ||
{ name="Oliver Ruebel", email="[email protected]" }, | ||
{ name="Ben Dichter", email="[email protected]" }, | ||
{ name="Matthew Avaylon", email="[email protected]" } | ||
] | ||
description= "Package for working with Neurodata stored in the NWB format." | ||
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", | ||
"License :: OSI Approved :: BSD License", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"Operating System :: Unix", | ||
"Topic :: Scientific/Engineering :: Medical Science Apps." | ||
] | ||
dependencies = [ | ||
"h5py>=2.10", | ||
"hdmf>=3.12.2", | ||
"numpy>=1.18", # match the version used in hdmf | ||
"pandas>=1.1.5", | ||
"python-dateutil>=2.7.3", | ||
] | ||
dynamic = ["version"] # the build backend will compute the version dynamically from git tag (or a __version__) | ||
|
||
[project.optional-dependencies] | ||
# Add optional dependencies here | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/NeurodataWithoutBorders/pynwb" | ||
"Bug Tracker" = "https://github.com/NeurodataWithoutBorders/pynwb/issues" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
# this file is created/updated when the package is installed and used in | ||
# src/pynwb/__init__.py to set `__version__` (from _version.py). | ||
version-file = "src/pynwb/_version.py" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/pynwb"] | ||
|
||
[tool.pytest.ini_options] | ||
# Addopts creates a shortcut for pytest. For example below, running `pytest` will actually run `pytest --cov --cov-report html`. | ||
addopts = "--cov --cov-report html" # generates coverage report in html format without showing anything on the terminal. | ||
|
||
[tool.codespell] | ||
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,nwb-schema" | ||
ignore-words-list = "datas" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["src/"] | ||
omit = [ | ||
"src/pynwb/_due.py", | ||
"src/pynwb/testing/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"@abstract" | ||
] | ||
|
||
[tool.ruff] | ||
select = ["E", "F", "T100", "T201", "T203"] | ||
exclude = [ | ||
".git", | ||
".tox", | ||
"__pycache__", | ||
"build/", | ||
"dist/", | ||
"src/nwb-schema", | ||
"docs/source/conf.py", | ||
"src/pynwb/_due.py", | ||
"docs/source/tutorials/", | ||
] | ||
line-length = 120 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"docs/gallery/*" = ["E402", "T201"] | ||
"src/*/__init__.py" = ["F401"] | ||
"test_gallery.py" = ["T201"] | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 17 | ||
|