-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
68 lines (63 loc) · 1.79 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
[tool.poetry]
name = "emrad_toolbox"
version = "0.1.0"
description = "Toolbox to analyse Radar and ECG data"
authors = ["Simon Meske <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
numpy = "<1.25,>=1.19"
neurokit2 = "^0.2.7"
scipy = "^1.12.0"
numba = "^0.58.1"
empkins-io = {git = "https://github.com/empkins/empkins-io.git"}
plotly = "^5.18.0"
mne = "=1.2.1"
[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
poethepoet = "^0.24.4"
pytest = "^7.4.4"
pytest-cov = "^4.1.0"
ruff = "^0.1.14"
numpydoc = "^1.6.0"
sphinx = "^7.2.6"
sphinx-gallery = "^0.15.0"
recommonmark = "^0.7.1"
memory-profiler = "^0.61.0"
matplotlib = "^3.8.2"
toml = "^0.10.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ["py38"]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| docs
| build
| dist
| \.virtual_documents
)/
)
'''
[tool.poe.tasks]
_format_black = "black ."
_format_ruff = "ruff . --fix-only --exit-zero"
format = ["_format_black", "_format_ruff", "_format_black"]
lint = { cmd = "ruff emrad_toolbox --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff emrad_toolbox --output-format github"
_check_black = "black . --check"
ci_check = { sequence = ["_check_black", "_lint_ci"], help = "Check all potential format and linting issues." }
test = { cmd = "pytest --cov=emrad_toolbox --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
docs = { "script" = "_tasks:task_docs()", help = "Build the html docs using Sphinx." }
version = { script = "_tasks:task_update_version()" }