-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
83 lines (74 loc) · 2.51 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
[tool.poetry]
name = "carwatch"
version = "0.3.1"
description = "A Python package for the CARWatch framework to improve cortisol awakening response sampling."
authors = [
"Annika Muecke <[email protected]>",
"Robert Richer <[email protected]>",
"Arne Küderle <[email protected]>",
"Luca Abel <[email protected]>"
]
license = "MIT"
homepage = "https://github.com/mad-lab-fau/carwatch-python"
repository = "https://github.com/mad-lab-fau/carwatch-python"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8, <3.11"
jupyterlab = "^3.4.5"
python-barcode = "^0.14.0"
CairoSVG = "^2.5.2"
click = "^8.1.3"
pandas = "^1.5.0"
qrcode = "^7.3.1"
matplotlib = { version = "^3.5.0", optional = true }
seaborn = { version = "^0.11.2", optional = true }
ipywidgets = {version = "^8", optional = true}
ipympl = {version = "^0.9", optional = true}
fau_colors = {version = "^1.6.0", optional=true}
trogon = "^0.4.0"
[tool.poetry.extras]
plotting = ["matplotlib", "seaborn", "ipywidgets", "ipympl", "fau_colors"]
[tool.poetry.dev-dependencies]
black = "^22.6.0"
poethepoet = "^0.16.0"
pytest = "^7.1.2"
pytest-cov = "^4.0.0"
ruff = "^0.0.261"
ipykernel = "^6.15.1"
[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"
format = { sequence = ["_format_black", "_format_ruff"], help = "Format all files." }
lint = { cmd = "ruff carwatch --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff carwatch --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=carwatch -cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
update_version = { script = "_tasks:task_update_version()" }
register_ipykernel = { cmd = "python -m ipykernel install --user --name carwatch --display-name carwatch", help = "Add a new jupyter kernel for the project." }
remove_ipykernel = { cmd = "jupyter kernelspec uninstall carwatch", help = "Remove the project specific jupyter kernel."}
[tool.poetry.scripts]
prepare_study = 'carwatch.scripts.prepare_study:run'