-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
95 lines (83 loc) · 1.95 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
[project]
name = "ml-playground"
dynamic = ["version"]
classifiers = [
"Private :: Do Not Upload",
]
description = ""
# https://numpy.org/neps/nep-0029-deprecation_policy.html
# Dec 18, 2024, Python 3.9 was dropped.
requires-python = ">=3.10"
dependencies = [
"torch",
"numpy",
"scipy",
"scikit-learn",
"einops",
"jupyter",
"notebook",
"matplotlib",
"pillow",
"spacy",
"pandas",
"geopy",
"sympy",
# "polars",
"polars-lts-cpu",
"timevec",
"pyarrow",
"human-readable",
"seaborn",
"torchviz",
"onnx",
"graphviz",
]
[tool.setuptools.packages.find]
where = ["example/"]
[tool.uv]
dev-dependencies = [
"pytest",
"pytest-cov",
"syrupy",
"poethepoet",
"nbmake",
"pytest-xdist",
"pandas-stubs",
"ruff",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.poe.tasks]
coverage-xml = "pytest --cov=example example --doctest-modules --cov-report=xml"
[tool.poe.tasks.test-all]
sequence = [{ ref = "test" }, { ref = "test-notebooks" }]
ignore_fail = "return_non_zero"
[tool.poe.tasks.test-notebooks]
cmd = "pytest -n auto --nbmake ${target}"
args = [
{ name = "target", default = "notebooks", multiple = true, positional = true },
]
[tool.poe.tasks.test]
cmd = "pytest ${target}"
args = [
{ name = "target", default = "example", multiple = true, positional = true },
]
[tool.poe.tasks.check]
sequence = [
{ cmd = "ruff check ${target}" },
]
args = [
{ name = "target", default = "example", multiple = true, positional = true },
]
ignore_fail = "return_non_zero"
[tool.poe.tasks.format]
sequence = [{ cmd = "ruff format ${target}" }]
args = [
{ name = "target", default = "example", multiple = true, positional = true },
]
ignore_fail = "return_non_zero"
[tool.ruff]
line-length = 79
# numpy has ended support for Python 3.8 due to NEP 29. https://numpy.org/neps/nep-0029-deprecation_policy.html
target-version = "py310"