-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (67 loc) · 2.43 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
[tool.poetry]
name = "gaitmap-bench-meta"
version = "0.1.0"
description = "META REPO FILE FOR GAITMAP-BENCH AND CHALLENGES. DO NOT INSTALL!"
readme = "README.md"
authors = ["Arne Küderle"]
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
gaitmap-bench = {path = "gaitmap-bench", develop = true}
gaitmap-challenges = {path = "gaitmap-challenges", develop = true}
[tool.poetry.group.gaitmap_algos]
optional = true
[tool.poetry.group.gaitmap_algos.dependencies]
# We add this for development, as this allows us to simply work on the gaitmap algo entries
gaitmap-algos = {path = "entries/gaitmap_algos", develop = true}
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.16.5"
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
ipython = "^8.8.0"
ipympl = "^0.9.2"
ipykernel = "^6.20.2"
sphinx-book-theme = "^1.0.1"
myst-nb = "^0.17.2"
sphinx-design = "^0.4.1"
myst-nb-bokeh = "^1.1.0"
ruff = "^0.0.260"
sphinx = "^5"
jupytext = "^1.14.6"
nbstripout = "^0.6.1"
black = {version = "^23.3.0", extras = ["jupyter"]}
numpydoc = "^1.5.0"
[tool.black]
line-length = 120
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
| \.ipynb_checkpoints
| \_debug
)/
)
'''
[tool.poe.tasks]
_format_black = "black ."
_format_ruff = "ruff . --fix-only --exit-zero"
format = ["_format_black", "_format_ruff", "_format_black"]
lint = { cmd = "ruff gaitmap-challenges gaitmap-bench entries --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff gaitmap-challenges gaitmap-bench entries --format=github"
_check_black = "black . --check"
ci_check = { sequence = ["_check_black", "_lint_ci"], help = "Check all potential format and linting issues." }
test_challenges = { cmd = "pytest --cov=gaitmap_challenges --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage on challenges package.", cwd="gaitmap-challenges" }
test_bench = { cmd = "pytest --cov=gaitmap_bench --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage on challenges package.", cwd="gaitmap-bench" }
conf_jupyter = { cmd = "python -m ipykernel install --user --name gaitmap_bench", help = "Add a new jupyter kernel for the project." }
version = { script = "_tasks:task_update_version()" }
bump_dev = { script = "_tasks:task_bump_all_dev()" }
docs = { script = "_tasks:task_docs()" }