-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
94 lines (77 loc) · 2.29 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["console"]
package-dir = {"" = "src"}
[project]
name = "console"
version = "0.0.1"
description = "MRI console application for pulseq sequences build on Spectrum-Instrumentation measurement cards."
authors = [
{name="David Schote", email="david.schote@ptb.de"},
{name="Berk Silemek", email="berk.silemek@ptb.de"}
]
readme = "README.md"
requires-python = ">=3.10,<3.11"
license = { file = "LICENSE" }
keywords = ["MRI, console, spectrum-instrumentation, acquisition, pulseq"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"pypulseq@git+https://github.com/imr-framework/pypulseq#egg=dev",
"numpy", # "numpy==1.23.0" for pypulseq master release 1.4
"plotly",
"PyYAML",
"matplotlib",
"pandas"
]
# Dependency groupds (optional)
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "pytest-xdist", "coverage", "codecov"]
lint = ["mypy", "ruff", "types-PyYAML"]
docs = ["sphinx", "pydata-sphinx-theme", "sphinx-pyproject", "sphinx-design"]
dev = ["line_profiler[ipython]", "nbformat>=4.2.0", "ipykernel", "ipython", "ipywidgets"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = [".", "src"]
[tool.mypy]
warn_return_any = "False"
check_untyped_defs = "True"
warn_no_return = "True"
warn_unreachable = "True"
python_version = "3.10"
ignore_missing_imports = true
mypy_path = "console"
exclude = ["docs"]
[tool.ruff]
# Use "ruff check --preview" to also show check for rules which are in preview (e.g. whitespaces)
src = ["src"]
line-length = 120
indent-width = 4
target-version = "py310"
extend-exclude = ["src/console/spcm_control/spcm", "docs"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.ruff.lint]
# Enable linters
# E = pycodestyle (error)
# W = pycodestyle (warning)
# F = Pyflakes
# S = flake8-bandit
# I = isort
# N = pep8-naming
# D = pydocstyle
# NPY = numpy specific rules
select = ["E", "W", "F", "S", "I", "N", "D", "NPY"]
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.pylint]
max-args = 10
max-branches = 15
max-statements = 50
[tool.ruff.lint.pydocstyle]
convention = "numpy"