forked from nipreps/nireports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
175 lines (150 loc) · 3.38 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", "nipreps-versions"]
build-backend = "hatchling.build"
[project]
name = "nireports"
description = "NiReports - The Visual Report System (VRS) of NiPreps"
readme = "README.rst"
authors = [{name = "The NiPreps Developers", email = "[email protected]"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Recognition",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
license = {file = "LICENSE"}
requires-python = ">=3.8"
dependencies = [
"importlib_resources >= 5.12; python_version < '3.12'",
"matplotlib >= 3.4.2",
"nibabel >= 3.0.1",
"nilearn >= 0.5.2",
"nipype",
"numpy",
"pandas",
"pybids",
"pyyaml",
"seaborn",
"svgutils >= 0.3.4",
"templateflow",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/nipreps/nireports"
NiPreps = "https://www.nipreps.org/"
[project.optional-dependencies]
doc = [
"furo",
"pydot >= 1.2.3",
"pydotplus",
"sphinx",
"sphinxcontrib-apidoc",
"sphinxcontrib-napoleon",
]
dev = [
"ruff",
"pre-commit",
]
test = [
"coverage",
"matplotlib",
"packaging",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-xdist",
"sphinx",
]
# Aliases
docs = ["nireports[doc]"]
tests = ["nireports[test]"]
all = ["nireports[doc,dev,test]"]
#
# Hatch configurations
#
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"] # No longer needed in sdist
[tool.hatch.build.targets.wheel]
packages = ["nireports"]
exclude = [
"nireports/tests/data", # Large test data directory
]
## The following two sections configure setuptools_scm in the hatch way
[tool.hatch.version]
validate-bump = true
source = "vcs"
raw-options = { version_scheme = "nipreps-calver" }
[tool.hatch.build.hooks.vcs]
version-file = "nireports/_version.py"
#
# Developer tool configurations
#
[tool.ruff]
line-length = 99
target-version = "py39"
exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"venv",
"_build",
"build",
"dist",
"nireports/tests/data/**",
"nireports/assembler/data/tests/work/**",
"nireports/assembler/data/tests/crashfile.txt",
"nireports/assembler/data/**/*.tpl",
]
[tool.ruff.lint]
select = [
"F",
"E",
"C",
"W",
"B",
"I",
]
ignore = [
"E203",
"B019",
"C901",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.extend-per-file-ignores]
"*/__init__.py" = ["F401"]
"docs/conf.py" = ["E265"]
"/^\\s*\\.\\. _.*?: http/" = ["E501"]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint.isort]
known-first-party=["nireports"]
[tool.pytest.ini_options]
norecursedirs = [".git"]
addopts = "-svx --doctest-modules -n auto"
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
env = "PYTHONHASHSEED=0"
filterwarnings = ["ignore::DeprecationWarning"]
junit_family = "xunit2"
[tool.coverage.run]
branch = true
omit = [
'*/tests/*',
'*/__init__.py',
'*/conftest.py',
'nireports/_version.py'
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
'raise NotImplementedError',
'warnings\.warn',
]