-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
199 lines (182 loc) · 4.24 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "timeseriesflattener"
version = "2.5.1"
authors = [
{ name = "Lasse Hansen", email = "lasseh0310@gmail.com" },
{ name = "Jakob Grøhn Damgaard", email = "bokajgd@gmail.com" },
{ name = "Kenneth Enevoldsen" },
{ name = "Martin Bernstorff", email = "martinbernstorff@gmail.com" },
]
description = "A package for converting time series data from e.g. electronic health records into wide format data."
classifiers = [
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.9.0,<3.13.0"
dependencies = [
"scipy>=1.8.0",
"scikit-learn>=1.1.2",
"pydantic>=2.0.0",
"pandas>=1.4.0",
"catalogue>=2.0.0",
"numpy>=1.23.3",
"pyarrow>=8.0.0",
"protobuf<=4.24.4",
# Other versions of protobuf give errors with pytest
"frozendict>=2.3.4",
"coloredlogs>14.0.0",
"tqdm>4.1.0",
"polars>=0.19.0",
"iterpy==1.6.0",
"rich>=13.0.0",
"ipykernel[docs]>=6.29.5",
]
[project.license]
file = "LICENSE"
[project.optional-dependencies]
dev = [
"pyright==1.1.330.post0",
"pre-commit==3.4.0",
"ruff==0.2.1", # important that these match the pre-commit hooks
"pandas-stubs==2.2.0.240218", # type stubs for pandas
"invoke==2.1.1",
]
test = [
"pytest==7.2.2",
"pytest-cov==3.0.0",
"pytest-xdist==3.1.0",
"pytest-sugar==0.9.7",
"pytest-testmon==2.1.0",
"pytest-benchmark==4.0.0",
"pytest-codspeed==2.2.0",
]
docs = [
"sphinx==5.3.0",
"furo==2023.3.27",
"sphinx-copybutton==0.5.2",
"sphinxext-opengraph==0.8.2",
"myst-nb==0.17.2",
"sphinx_design==0.3.0",
"ipykernel>=6.29.5",
]
tutorials = ["jupyter>=1.0.0,<1.1.0", "skimpy==0.0.15"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
homepage = "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener"
repository = "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener"
documentation = "https://aarhus-psychiatry-research.github.io/timeseriesflattener/"
[tool.uv]
override-dependencies = ["polars >= 1.0"]
[tool.pyright]
exclude = [".*venv*/", ".venv38/", ".tox", ".benchmark_cache"]
[tool.ruff]
line-length = 100
target-version = "py39"
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = [
"A",
"ANN",
"ARG",
"B",
"C4",
"COM",
"D417",
"E",
"ERA",
"F",
"I",
"ICN",
"NPY001",
"PD002",
"PIE",
"PLE",
"PLW",
"PT",
"UP",
"Q",
"PTH",
"RSE",
"RET",
"RUF",
"SIM",
"TCH",
"W",
]
ignore = [
"ANN101",
"ANN401",
"E402",
"E501",
"F401",
"F841",
"RET504",
"RUF001",
"COM812",
]
ignore-init-module-imports = true
# Allow autofix for all enabled rules (when `--fix`) is provided.
unfixable = ["ERA"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"__init__.py",
"docs/conf.py",
".benchmark_cache/*",
"src/timeseriesflattener/*",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
suppress-none-returning = true
[tool.ruff.lint.isort]
known-third-party = ["wandb"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = [
"pydantic.BaseModel",
"timeseriesflattener.utils.pydantic_basemodel",
]
[tool.semantic_release]
branch = "main"
version_variable = ["pyproject.toml:version"]
upload_to_pypi = true
upload_to_release = true
build_command = "python -m pip install build; python -m build"
[tool.setuptools]
include-package-data = true