-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
83 lines (76 loc) · 3.68 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
[tool.poetry]
name = "mobgap"
version = "0.10.0"
description = "A Python implementation of the Mobilise-D algorithm pipeline for gait analysis using IMU worn at the lower back."
authors = [
"Arne Küderle <[email protected]>",
"Felix Kluge <[email protected]>",
"Paolo Tasca <[email protected]>",
"Annika Mücke <[email protected]>",
"dmegaritis <[email protected]>",
"Zamal Babar <[email protected]>",
"Alexandru Stihi <[email protected]>",
"Chloe Hinchliffe <[email protected]>",
"Cameron Kirk <[email protected]>",
"Björn Eskofier <[email protected]>"
]
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
tpcp = ">=2.0.0"
pandas = ">=2.2.0"
scipy = ">=1.11.2"
numpy = ">=1.25.2"
scikit-learn = ">=1.3.0"
joblib = ">=1.3.2"
openpyxl = {version=">=3.1.2", optional=true}
intervaltree = ">=3.1.0"
pywavelets = ">=1.5.0"
pooch = ">=1.8.1"
pingouin = {version=">=0.5.4", optional=true}
numba = ">=0.60.0"
python-dotenv = ">=1.0.1"
[tool.poetry.extras]
all = ["openpyxl", "pingouin"]
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.22.0"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
ruff = "^0.5.0"
sphinx = "^7.2.6"
sphinx-gallery = "^0.14.0"
memory-profiler = "^0.61.0"
matplotlib = "^3.7.2"
toml = "^0.10.2"
pydata-sphinx-theme = "^0.16.0"
myst-parser = "^2.0.0"
ipykernel = "^6.25.1"
numpydoc = "^1.6.0"
ipympl = "^0.9.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
_format = "ruff format ."
_auto_fix = "ruff check . --fix-only --show-fixes --exit-zero"
_auto_fix_unsafe = "ruff check . --fix-only --show-fixes --exit-zero --unsafe-fixes"
format = ["_auto_fix", "_format"]
format_unsafe = ["_auto_fix_unsafe", "_format"]
lint = { cmd = "ruff check mobgap --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff check mobgap --output-format=github"
_check_format = "ruff format . --check"
_file_length = { "script" = "_tasks:task_no_long_file_names()", help = "Check the length of all files." }
ci_check = { sequence = ["_check_format", "_lint_ci", "_check_update_example_data", "_file_length"], help = "Check all potential format and linting issues." }
test = { cmd = "pytest tests --cov=mobgap --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
test_ci = { cmd = "pytest tests --cov=mobgap --cov-report=term-missing --cov-report=xml --snapshot-only-check", help = "Run Pytest with coverage and fail on missing snapshots." }
docs = { "script" = "_tasks:task_docs()", help = "Build the html docs using Sphinx." }
docs_clean = { "script" = "_tasks:task_docs(clean=True)", help = "Remove all old build files and build a clean version of the docs." }
docs_linkcheck = { "script" = "_tasks:task_docs(builder='linkcheck')", help = "Check all links in the built html docs." }
docs_preview = { cmd = "python -m http.server --directory docs/_build/html", help = "Preview the built html docs." }
version = { script = "_tasks:task_update_version()", help="Bump the version number in all relevant files."}
conf_jupyter = { cmd = "python -m ipykernel install --user --name mobgap", help = "Add a new jupyter kernel for the project." }
remove_jupyter = { cmd = "jupyter kernelspec uninstall mobgap", help = "Remove the project specific jupyter kernel."}
update_example_data = { script="_tasks:task_update_example_data", help = "Update the example data registry."}
_check_update_example_data = { script="_tasks:task_update_example_data(raise_if_changes=True)", help = "Update the example data registry."}
update_validation_results = {script = "_tasks:task_update_validation_results()", help = "Update the validation results."}