forked from PyDFLT/PyDFLT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (88 loc) · 1.97 KB
/
pyproject.toml
File metadata and controls
101 lines (88 loc) · 1.97 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
[project]
name = "pydflt"
version = "0.1.1"
description = "PyDFLT"
authors = [
{ name = "Noah Schutte", email = "N.J.Schutte@tudelft.nl"},
{ name = "Kim van den Houten", email = "K.C.vandenhouten@tudelft.nl"},
{ name = "Grigorii Veviurko", email = "G.Veviurko@tudelft.nl"}
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"torch>=2.7.1",
"cvxpy>=1.4.1",
"diffcp>=1.0.18",
"cvxpylayers>=0.1.6",
"numpy>=1.26.4",
"ortools>=9.12.4544",
"gurobipy>=11.0.3",
"pyepo~=0.3.9",
"pyyaml>=6.0.2", # PyYAML is same package
"tomli>=2.0.1",
"wandb>=0.19.11",
"pandas>=2.2.3",
"matplotlib>=3.6.3",
"optuna>=4.2.1",
"optuna-dashboard>=0.19.0",
"scikit-learn>=1.6.1",
"scipy>=1.13.1",
"joblib>=1.4.2",
"ipywidgets>=8.1.7"
]
[dependency-groups]
dev = [
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"nbmake>=1.5.5",
"codecov>=2.1.13",
"pre-commit>=3.8.0",
"ruff>=0.12.4",
]
docs = [
"sphinx>=7.4.7",
"nbsphinx>=0.9.5",
"numpydoc>=1.8.0",
"sphinx-immaterial>=0.12.2",
"myst-parser>=2.0.0",
"pypandoc-binary==1.13",
]
examples = [
"jupyter>=1.0.0",
]
[tool.uv]
required-version = "0.6.16"
default-groups = ["dev", "docs"]
[tool.black]
line-length = 160
[tool.ruff]
line-length = 160
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"I", # isort
"W", # pycodestyle warnings,
"F", # pyflakes,
"C", # flake8-comprehensions,
"B", # flake8-bugbear
]
ignore = [
"C901", # too complex
]
[tool.ruff.lint.isort]
known-third-party = ["numpy", "wandb"] # can cause issues with pre-commit otherwise
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report=xml --nbmake"
testpaths = [
"tests",
"examples",
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["pydflt*"]
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"