-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (133 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
148 lines (133 loc) · 3.44 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.pytest.ini_options]
pythonpath = [
".",
]
testpaths = [
".",
"./test",
]
# ignore any of these paths
norecursedirs = [
]
[tool.poetry]
name = "shuntclf"
version = "1.0.0"
description = "Machine learning algorithms used for the prediction of chronic shunt-dependent hydrocephalus after spontaneous subarachnoid hemorrhage"
authors = [
"Markus Steindl <ma.steindl@gmail.com>",
]
[tool.poetry.dependencies]
python = "~3.11"
pandas = "^2.1.1"
matplotlib = "^3.8.0"
tensorboard = "^2.14.1"
seaborn = "^0.13.0"
numpy = "^1.25.2"
imbalanced-learn = "^0.12.0"
xgboost = "^2.0.3"
scikit-learn = "^1.4.1.post1"
gradio = "^5.35.0"
openpyxl = "^3.1.5"
[tool.poetry.group.dev.dependencies]
pytest = "^8.4.1"
pytest-cov = "^6.2.1"
pytest-xdist = "^3.7.0"
poethepoet = "^0.36.0"
isort = "^6.0.1"
ruff = "^0.12.1"
black = "^25.1.0"
ipykernel = "^6.29.5"
#liccheck = "^0.9.1"
#pip-licenses = "^4.3.2"
[tool.liccheck]
# see also: https://pypi.org/project/liccheck/
# Authorized and unauthorized licenses in LOWER CASE
authorized_licenses = [
"bsd",
"new bsd",
"bsd 3-clause",
"bsd license",
"freebsd",
"3-clause bsd",
"isc license",
"isc license (iscl)",
"apache",
"apache 2.0",
"apache software",
"apache license 2.0",
"apache license, version 2.0",
"apache software license",
"gnu lgpl",
"historical permission notice and disclaimer (hpnd)",
"lgpl with exceptions or zpl",
"mozilla public license 2.0 (mpl 2.0)",
"mit",
"mit license",
"new bsd license",
"python software foundation license",
"python software foundation",
"simplified bsd",
"the unlicense (unlicense)",
]
unauthorized_licenses = [
"gpl v3",
"gnu general public license v2 or later (gplv2+)",
]
level = "standard" # alternatives: "cautious", "paranoid"
requirement_txt_file = "./requirements.txt"
reporting_txt_file = "./liccheck_reporting.txt" # by default is None
[tool.liccheck.authorized_packages]
# Python software license (see http://zesty.ca/python/uuid.README.txt)
uuid = "1.30"
[tool.poe.tasks]
format = "black ."
sort_imports = "isort ."
lint = "ruff check . --ignore F841"
precommit = ["format", "sort_imports", "lint"]
test = "pytest -ra --doctest-modules --junitxml=python-junit.xml --cov --cov-report=html --cov-report term"
# license handling
_convert_to_req_txt = { shell = "poetry export --without-hashes --format=requirements.txt > requirements.txt" }
# check authorization of the licenses of dependencies as defined in [tool.liccheck] section
_check_licenses = "liccheck -s liccheck.ini -r requirements.txt"
_export_licenses = """pip-licenses --from=mixed --with-system --order=license --format=json --with-license-file
--with-notice-file --output-file=LICENSES.json"""
_license_json_postprocess.script = """
utils.license_utils:postprocess_licenses_json(
file_in_path="LICENSES.json",
file_out_path="LICENSES.json",
)
"""
check_licenses = [
"_convert_to_req_txt",
"_check_licenses",
]
export_licenses = [
"_export_licenses",
"_license_json_postprocess"
]
[tool.ruff]
line-length = 120
exclude = [
]
[tool.isort]
profile = "black"
line_length = 120
skip_glob = [
]
[tool.black]
line-length = 120
force-exclude = """
(
some_path
| some_other_path
)
"""
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"pass",
]
[build-system]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"