-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (68 loc) · 2.06 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
[tool.poetry]
name = "sok_ldp_analysis"
version = "0.1.0"
description = ""
authors = ["René Raab <[email protected]>"]
license = ""
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
numpy = "^1.25.2"
pandas = "^2.1.0"
tqdm = "^4.66.1"
pyarrow = "^15.0.0"
ucimlrepo = "^0.0.3"
seaborn = "^0.13.2"
pure-ldp = "^1.2.0"
scikit-learn = "^1.4.1.post1"
statsmodels = "^0.14.1"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
poethepoet = "^0.22.0"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
ipykernel = "^6.25.1"
ruff = "^0.0.286"
ipympl = "^0.9.3"
nbstripout = "^0.6.1"
nprr = "^0.1.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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
)/
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
skip_gitignore = true
[tool.poe.tasks]
_format_black = "black ."
_format_ruff = "ruff . --fix-only --exit-zero"
format = ["_format_black", "_format_ruff", "_format_black"]
lint = { cmd = "ruff sok_ldp_analysis --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff sok_ldp_analysis --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=sok_ldp_analysis --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
version = { script = "_tasks:task_update_version()" }
conf_jupyter = { cmd = "python -m ipykernel install --user --name sok_ldp_analysis", help = "Add a new jupyter kernel for the project." }
remove_jupyter = { cmd = "jupyter kernelspec uninstall sok_ldp_analysis", help = "Remove the project specific jupyter kernel." }
experiment = { script = "_tasks:task_new_experiment()", help = "Create the boilerplate for a new experiment in the experiment subfolder." }