-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
76 lines (68 loc) · 2.33 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
[tool.poetry]
name = "empkins-io"
version = "0.1.1"
description = "A Python package to load and convert data from EmpkinS sensors."
authors = ["Robert Richer <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
pyquaternion = "^0.9.9"
biopsykit = {git="https://github.com/mad-lab-fau/BioPsyKit.git", branch="main"}
#biopsykit = {path="../BioPsyKit", develop=true}
h5py = "^3.5.0"
tpcp = ">=2"
resampy = "^0.4.2"
avro = "^1.11.3"
fastavro = "^1.4.0"
# opencv is optional, but required for some functions
opencv-python = {version="^4.8", optional=true}
[tool.poetry.extras]
opencv = ["opencv-python"]
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
ruff = "^0.6.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py310']
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_black = "black ."
_format_ruff = "ruff . --fix-only"
format = { sequence = ["_format_black", "_format_ruff"], help = "Format all files." }
lint = { cmd = "ruff empkins_io --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff empkins_io --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=empkins_io --cov-report=xml", help = "Run Pytest with coverage." }
update_version = {"script" = "_tasks:task_update_version"}
register_ipykernel = { cmd = "python -m ipykernel install --user --name empkins-io --display-name empkins-io", help = "Add a new jupyter kernel for the project."}
remove_ipykernel = { cmd = "jupyter kernelspec uninstall empkins-io", help = "Remove the project specific jupyter kernel."}
default = {sequence = ["format", "lint", "test"], help = "Run the default pipeline, consisting of formatting, linting, and testing."}