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
|
[project]
name = "powerfox"
version = "0.0.0"
description = "Asynchronous Python client for the Powerfox devices"
authors = [{ name="Klaas Schoute", email="<hello@student-techlife.com>"}]
maintainers = [{name="Klaas Schoute", email="<hello@student-techlife.com>"}]
license = "MIT"
requires-python = ">=3.12"
readme = "README.md"
keywords = ["powerfox", "energy", "poweropti", "api", "async", "client"]
classifiers = [
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["dependencies"]
packages = [
{ include = "powerfox", from = "src"},
]
[tool.poetry.dependencies]
aiohttp = ">=3.0.0"
mashumaro = "^3.12"
orjson = "^3.9.13"
python = "^3.12"
yarl = ">=1.6.0"
[project.urls]
homepage = "https://github.com/klaasnicolaas/python-powerfox"
repository = "https://github.com/klaasnicolaas/python-powerfox"
documentation = "https://github.com/klaasnicolaas/python-powerfox"
"Bug Tracker" = "https://github.com/klaasnicolaas/python-powerfox/issues"
Changelog = "https://github.com/klaasnicolaas/python-powerfox/releases"
[tool.poetry.group.dev.dependencies]
aresponses = "3.0.0"
codespell = "2.4.1"
covdefaults = "2.3.0"
coverage = {version = "7.13.4", extras = ["toml"]}
pre-commit-hooks = "6.0.0"
prek = "0.3.3"
pylint = "4.0.5"
pytest = "9.0.2"
pytest-asyncio = "1.3.0"
pytest-cov = "7.0.0"
ruff = "0.15.2"
syrupy = "5.1.0"
ty = "0.0.18"
yamllint = "1.38.0"
zizmor = "1.22.0"
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["powerfox"]
[tool.coverage.report]
fail_under = 90
show_missing = true
[tool.pylint.MASTER]
ignore = ["tests"]
[tool.pylint.BASIC]
good-names = ["_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T"]
[tool.pylint."MESSAGES CONTROL"]
disable= [
"duplicate-code",
"format",
"unsubscriptable-object",
]
[tool.pylint.SIMILARITIES]
ignore-imports = true
[tool.pylint.FORMAT]
max-line-length = 88
[tool.pylint.DESIGN]
max-attributes = 20
[tool.pytest.ini_options]
addopts = "--cov"
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
lint.select = ["ALL"]
lint.ignore = [
"ANN401", # Opinionated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"PLR2004", # Just annoying, not really useful
"SLOT000", # Has a bug with enums: https://github.com/astral-sh/ruff/issues/5748
# Conflicts with the Ruff formatter
"COM812",
"ISC001",
]
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = false
fixture-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["powerfox"]
[tool.ruff.lint.mccabe]
max-complexity = 25
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
|