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[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pyenergi"
authors = [{ name = "Kye Russell", email = "me@kye.id.au" }]
description = "Python client for the myenergi API"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
dependencies = ["typer", "rich", "httpx", "pydantic<2"]
classifiers = [
"Development Status :: 1 - Planning",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Topic :: Software Development",
]
keywords = ["myenergi", "home automation", "iot", "internet of things"]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"ruff",
"pre-commit",
"mypy",
"build",
"hatch",
"pytest",
"pytest-cov",
"pytest-asyncio",
]
docs = [
"sphinx",
"furo",
"myst-parser",
"sphinx-autobuild",
"sphinx-autodoc-typehints",
]
[project.urls]
Homepage = "https://pyenergi.readthedocs.io"
Documentation = "https://pyenergi.readthedocs.io"
Changelog = "https://pyenergi.readthedocs.io/en/latest/CHANGELOG.html"
Repository = "https://github.com/KyeRussell/pyenergi"
Issues = "https://github.com/KyeRussell/pyenergi/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/__version__.py"
[tool.hatch.build.targets.sdist]
include = ["src/*", "LICENSE"]
exclude = ["*.json", "pkg/_compat.py"]
[tool.pytest.ini_options]
minversion = "8.1.1"
addopts = "--cov=src --cov-report html"
markers = ["online: marks tests as communicating with the myenergi API"]
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = [
"UP", # pyupgrade
"I", # isort
"W", # Warning
"N", # pep8-naming
"YTT", # flake8-2020
"ASYNC", # flake8-async
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"Q", # flake8-quotes
"RSE", # flake8-raise
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
]