-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (92 loc) · 2.63 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (92 loc) · 2.63 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
# pyproject.toml
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "huabus"
dynamic = ["version"]
description = "Huawei Solar Modbus via MQTT and Auto-Discovery"
authors = [{ name = "arboeh", email = "arend.boehmer@web.de" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Home Automation",
]
dependencies = [
"huawei-solar>=2.5,<2.6", # v3.0 noch nicht auf PyPI; breaking change: AsyncHuaweiSolar → AsyncHuaweiSolarClient
# Tracker: https://github.com/wlcrs/huawei-solar-lib/releases
"pymodbus>=3.9,<4",
"paho-mqtt>=2.1,<2.2",
]
[tool.hatch.version]
path = "huawei_solar_modbus_mqtt/bridge/version.py"
pattern = 'version = "(?P<version>[^"]+)"'
[tool.hatch.build.targets.wheel]
packages = ["huawei_solar_modbus_mqtt"]
[dependency-groups]
dev = [
"pytest>=9,<10",
"pytest-asyncio>=1.2,<2",
"pytest-cov>=7,<8",
"pytest-mock>=3.15,<4",
"mypy>=1.20,<3",
"pyyaml>=6,<7",
"ruff>=0.9,<1",
"pre-commit>=4,<5",
]
[project.urls]
Homepage = "https://github.com/arboeh/huABus"
Repository = "https://github.com/arboeh/huABus"
Issues = "https://github.com/arboeh/huABus/issues"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-v --strict-markers"
[tool.coverage.run]
source = ["huawei_solar_modbus_mqtt/bridge"]
omit = ["*/tests/*", "*/venv/*", "*/__version__.py"]
[tool.coverage.report]
fail_under = 70
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if not TYPE_CHECKING:",
"@overload",
]
[tool.mypy]
python_version = "3.11"
explicit_package_bases = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["pymodbus.*"]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4"]
ignore = ["N802"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501"]