-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (79 loc) · 1.8 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (79 loc) · 1.8 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pumpahead"
version = "0.1.0"
description = "Predictive heating/cooling controller for Home Assistant using Model Predictive Control"
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [
{ name = "Hubert Ciebiada" },
]
dependencies = [
"numpy>=1.26",
"scipy>=1.12",
"cvxpy>=1.5",
"osqp>=0.6",
]
[project.optional-dependencies]
viz = [
"matplotlib>=3.8",
"pandas>=2.0",
"plotly>=5.18",
"dash>=2.14",
]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.3",
"mypy>=1.9",
"pre-commit>=4.0",
"pumpahead[viz]",
]
[tool.setuptools.packages.find]
include = ["pumpahead*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"unit: Fast, isolated unit tests",
"simulation: Slow scenario-based simulation tests",
"slow: Tests that take more than a few seconds",
]
addopts = "-ra -q --strict-markers --tb=short"
filterwarnings = [
"error",
]
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.mypy]
python_version = "3.12"
strict = true
[[tool.mypy.overrides]]
module = ["homeassistant.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["custom_components.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["scipy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["cvxpy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pandas.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["dash.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["plotly.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["yaml.*"]
ignore_missing_imports = true