-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
127 lines (113 loc) · 2.98 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
[build-system]
requires = ["setuptools", "setuptools_scm[toml]>=8.0.4"]
build-backend = "setuptools.build_meta"
[project]
name = "niftyone"
description = "Large-scale neuroimaging visualization using FiftyOne"
authors = [
{name = "Connor Lane", email = "[email protected]"},
{name = "Jason Kai", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT License"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
dependencies = [
"av",
"bids2table",
"elbow",
"fiftyone",
"matplotlib",
"nibabel",
"nifti @ git+https://github.com/childmindresearch/nifti",
"numpy",
"pandas",
"Pillow",
"scikit-learn",
"scipy"
]
dynamic = ["version"]
[project.optional-dependencies]
test = ["pytest>=8.0.2", "pytest-cov>=4.1.0"]
dev = [
"mypy>=1.12.0",
"pre-commit>=4.0.1",
"ruff>=0.7.0",
"setuptools-scm>=8.0.4"
]
[project.urls]
"Homepage" = "https://github.com/childmindresearch/niftyone"
[project.scripts]
niftyone = "niftyone.__main__:main"
[tool.setuptools_scm]
write_to = "src/niftyone/_version.py"
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = [
"b2t: mark tests requiring bids2table (deselect with '-m \"not b2t\"')"
]
log_cli = true
log_cli_level = "DEBUG"
[tool.coverage.report]
exclude_also = ["assert", "__enter__", "__exit__", "pass"]
[tool.coverage.run]
omit = [
"src/**/__init__.py",
"src/**/typing.py",
"src/niftyone/__main__.py",
"src/niftyone/_version.py",
"src/niftyone/metadata/tags.py",
"src/niftyone/analysis_levels/*.py",
"src/niftyone/metrics.py",
"src/niftyone/figures/*.py"
]
[tool.mypy]
ignore_missing_imports = true
allow_redefinition = true
disable_error_code = ["no-redef"]
[tool.ruff]
line-length = 88
indent-width = 4
src = ["src"]
target-version = "py310"
[tool.ruff.lint]
select = ["ANN", "D", "E", "F", "I"]
ignore = [
"ANN002", # args should not be annotated.
"ANN003", # kwargs should not be annotated.
"ANN101", # self should not be annotated.
"ANN102", # cls should not be annotated.
"D105", # undocumented-magic-method (e.g. __str__)
"D107" # undocumented-public-init (e.g. __init__)
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"runner.py" = ["D102"]
"tests/**/*.py" = [
"D", # ignore missing docstrings
"ANN201" # ignore missing return type
]
"src/niftyone/figures/*.py" = [
"D101", # ignore missing class docstrings
"D102" # ignore missing method docstrings
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"