-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (125 loc) · 3.29 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (125 loc) · 3.29 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "battery-energy-trading"
version = "0.13.0"
description = "Home Assistant custom integration for intelligent battery management and energy trading optimization"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{name = "Tsopic", email = "tsopic@users.noreply.github.com"}
]
keywords = [
"home-assistant",
"custom-component",
"battery",
"energy-trading",
"nord-pool",
"solar",
"optimization"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Home Automation",
]
# Runtime dependencies
dependencies = []
[project.optional-dependencies]
# Development and testing dependencies
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"pytest-homeassistant-custom-component>=0.13.0",
]
# Testing only (for CI/CD)
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"pytest-homeassistant-custom-component>=0.13.0",
"homeassistant>=2024.1.0",
]
[project.urls]
Homepage = "https://github.com/Tsopic/battery_energy_trading"
Documentation = "https://github.com/Tsopic/battery_energy_trading"
Repository = "https://github.com/Tsopic/battery_energy_trading"
"Bug Tracker" = "https://github.com/Tsopic/battery_energy_trading/issues"
Changelog = "https://github.com/Tsopic/battery_energy_trading/blob/main/CHANGELOG.md"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["custom_components.battery_energy_trading*"]
namespaces = false
[tool.setuptools.package-data]
"custom_components.battery_energy_trading" = [
"manifest.json",
"translations/*.json",
"*.yaml",
"*.md",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
[tool.coverage.run]
source = ["custom_components/battery_energy_trading"]
branch = true
omit = [
"tests/*",
"custom_components/battery_energy_trading/__pycache__/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
# Target: 85% coverage (temporarily lowered for AI module)
fail_under = 85
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.json]
output = "coverage.json"
[tool.bandit]
# Bandit security linter configuration
exclude_dirs = ["tests", ".venv", "htmlcov"]
skips = [
"B101", # assert_used - we use asserts appropriately
"B601", # paramiko_calls - not applicable
]
[tool.mypy]
# Type checking configuration
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
exclude = [
"tests/",
".venv/",
]