-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (83 loc) · 2.73 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "setuptools_scm[toml]", "wheel"]
[project]
name = "mrtwin"
description = "Collection of virtual objects for numerical MR experiments."
readme = "README.rst"
requires-python = ">=3.10"
dynamic = ["version"]
license = {file = "LICENSE"}
keywords = ["brainweb", "mri", "download", "data"]
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 = [
"brainweb-dl",
"phantominator",
"osfclient",
"numba"
]
[project.optional-dependencies] # Optional
dev = ["black", "isort"]
test = ["pytest", "pytest-black", "pytest-cov", "pytest-sugar", "pytest-xdist"]
doc = ["sphinx", "pydata-sphinx-theme", "sphinx-gallery", "matplotlib"]
# 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/mrtwin"
"Bug Reports" = "https://github.com/INFN-MRI/mrtwin/issues"
"Source" = "https://github.com/INFN-MRI/mrtwin"
[tool.setuptools.packages.find]
where=["src"]
[tool.setuptools_scm]
write_to = "src/mrtwin/_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=mrtwin",
"--cov-report=term-missing",
"--cov-report=xml"
]
# linting using ruff.
[tool.ruff]
src = ["src", "tests"]
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.per-file-ignores]
"tests/*.py" = ["ANN"]
[tool.ruff.pydocstyle]
convention = "numpy"
[mypy]
ignore_missing_imports = true