-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (59 loc) · 2.12 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
[tool.poetry]
name = "empkins-macro"
version = "0.1.0"
description = "A Python package to work with EmpkinS Macro data."
authors = ["Robert Richer <[email protected]>", "Luca Abel <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
tsfresh = "^0"
# numpy smaller 1.24 because of tsfresh
numpy = ">=1.19,<1.24"
biopsykit = {git="https://github.com/mad-lab-fau/BioPsyKit.git", branch="main", extras=["jupyter"]}
empkins-io = {git="https://github.com/empkins/empkins-io.git", branch="main", extras=["jupyter"]}
#empkins-io = {path = "../empkins-io", develop = true}
[tool.poetry.dev-dependencies]
pytest = "^5.2"
poethepoet = "^0.10.0"
[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.isort]
profile = "black"
multi_line_output = 3
line_length = 120
skip_gitignore = true
[tool.poe.tasks]
_black = "black ."
_black_check = "black . --check"
_isort = "isort **/*.py"
_isort_check = "isort **/*.py --check-only"
# Reformat all files using black and sort import
format = { sequence = ["_black", "_isort"], help = "Format all files." }
format_check = ["_black_check", "_isort_check"]
lint = {cmd = "prospector", help = "Lint all files with Prospector." }
test = {cmd = "pytest --cov=empkins_macro --cov-report=xml", help = "Run Pytest with coverage." }
docs = {"script" = "_tasks:task_docs"}
update_version = {"script" = "_tasks:task_update_version"}
register_ipykernel = { cmd = "python -m ipykernel install --user --name empkins-macro --display-name empkins-macro", help = "Add a new jupyter kernel for the project."}
remove_ipykernel = { cmd = "jupyter kernelspec uninstall empkins-macro", help = "Remove the project specific jupyter kernel."}
default = {sequence = ["format", "lint", "test"], help = "Run the default pipeline, consisting of formatting, linting, and testing."}