forked from CEA-COSMIC/ModOpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
58 lines (45 loc) · 1.46 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
[project]
name="modopt"
description = 'Modular Optimisation tools for soliving inverse problems.'
version = "1.7.2"
requires-python= ">=3.8"
authors = [{name="Samuel Farrens", email="[email protected]"},
{name="Chaithya GR", email="[email protected]"},
{name="Pierre-Antoine Comby", email="[email protected]"},
{name="Philippe Ciuciu", email="[email protected]"}
]
readme="README.md"
license={file="LICENCE.txt"}
dependencies = ["numpy", "scipy", "tqdm", "importlib_metadata"]
[project.optional-dependencies]
gpu=["torch", "ptwt"]
doc=["myst-parser",
"nbsphinx",
"nbsphinx-link",
"sphinx-gallery",
"numpydoc",
"sphinxawesome-theme",
"sphinxcontrib-bibtex"]
dev=["black", "ruff"]
test=["pytest<8.0.0", "pytest-cases", "pytest-cov", "pytest-xdist", "pytest-sugar"]
[build-system]
requires=["setuptools", "setuptools-scm[toml]", "wheel"]
[tool.coverage.run]
omit = ["*tests*", "*__init__*", "*setup.py*", "*_version.py*", "*example*"]
[tool.coverage.report]
precision = 2
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
[tool.black]
[tool.ruff]
exclude = ["examples", "docs"]
[tool.ruff.lint]
select = ["E", "F", "B", "Q", "UP", "D", "NPY", "RUF"]
ignore = ["F401"] # we like the try: import ... expect: ...
[tool.ruff.lint.pydocstyle]
convention="numpy"
[tool.isort]
profile="black"
[tool.pytest.ini_options]
minversion = "6.0"
norecursedirs = ["tests/test_helpers"]
addopts = ["--cov=modopt", "--cov-report=term-missing", "--cov-report=xml"]