-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
110 lines (90 loc) · 2.75 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "setuptools_scm[toml]", "wheel"]
[project]
name = "mrbabel"
description = "Python tools to read and write raw and image MR data in different formats."
readme = "README.rst"
requires-python = ">=3.10"
dynamic = ["version"]
license = {file = "LICENSE.txt"}
keywords = ["mri", "i/o"]
authors = [
{name = "Matteo Cencini", email = "matteo.cencini@gmail.com" } # Optional
]
# Classifiers help users find your project by categorizing it.
# For a list of valid classifiers, see https://pypi.org/classifiers/
classifiers = [ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by "pip install". See instead "python_requires" below.
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ismrmrd",
"mrd-python",
"gt-twixtool",
"pyvoxel",
"nii2dcm",
"lxml",
]
[project.optional-dependencies] # Optional
dev = ["black", "isort", "matplotlib"]
test = ["pytest", "pytest-black", "pytest-cov", "pytest-sugar", "pytest-xdist"]
doc = [
"sphinx",
"sphinx_book_theme",
"sphinx-gallery",
"sphinx-exec-directive",
"sphinx_copybutton",
"mrbabel-data",
]
# List URLs that are relevant to your project
# This field corresponds to the "Project-URL" and "Home-Page" metadata fields:
[project.urls] # Optional
"Homepage" = "https://github.com/INFN-MRI/mrbabel"
"Bug Reports" = "https://github.com/INFN-MRI/mrbabel/issues"
"Source" = "https://github.com/INFN-MRI/mrbabel"
[tool.setuptools.packages.find]
where=["src"]
[tool.setuptools_scm]
write_to = "src/mrbabel/_version.py"
version_scheme = "python-simplified-semver"
local_scheme="no-local-version"
fallback_version="v99-dev"
# Formatting using black.
[tool.black]
[tool.isort]
profile="black"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"--cov=mrbabel",
"--cov-report=term-missing",
"--cov-report=xml"
]
# linting using ruff.
[tool.ruff]
src = ["src"]
select = ["E", "F", "B", "Q", "D", "UP", "ANN"]
ignore = [
"ANN101", # missing type annotation for self
"ANN102", # missing type annotation for cls in classmethod.
"ANN204", # missing return type for __init__
"D105", # missing docstring in magic method
"D404", # Imperative mode is not necessary everywhere, trust me.
]
[tool.ruff.pydocstyle]
convention = "numpy"
[mypy]
ignore_missing_imports = true