| 1 |
[build-system] |
| 2 |
requires = ["setuptools==77.0.3", "wheel==0.45.1"] |
| 3 |
build-backend = "setuptools.build_meta" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "pydeconz" |
| 7 |
version = "120" |
| 8 |
license = {text = "MIT"} |
| 9 |
description = "Python library for communicating with deCONZ REST-API" |
| 10 |
readme = "README.rst" |
| 11 |
authors = [{name = "Robert Svensson", email = "[email protected]"}] |
| 12 |
keywords = ["deconz", "zigbee", "homeassistant"] |
| 13 |
classifiers = [ |
| 14 |
"Development Status :: 5 - Production/Stable", |
| 15 |
"Intended Audience :: Developers", |
| 16 |
"License :: OSI Approved :: MIT License", |
| 17 |
"Operating System :: OS Independent", |
| 18 |
"Programming Language :: Python :: 3.12", |
| 19 |
"Topic :: Home Automation", |
| 20 |
] |
| 21 |
requires-python = ">=3.12.0" |
| 22 |
dependencies = [ |
| 23 |
"aiohttp>3.9", |
| 24 |
"orjson>3.9", |
| 25 |
] |
| 26 |
|
| 27 |
[project.optional-dependencies] |
| 28 |
requirements = [ |
| 29 |
"aiohttp==3.11.14", |
| 30 |
"orjson==3.10.15", |
| 31 |
] |
| 32 |
requirements-test = [ |
| 33 |
"aioresponses==0.7.8", |
| 34 |
"mypy==1.15.0", |
| 35 |
"pytest==8.3.5", |
| 36 |
"pytest-aiohttp==1.1.0", |
| 37 |
"pytest-cov==6.0.0", |
| 38 |
"ruff==0.11.1", |
| 39 |
] |
| 40 |
requirements-dev = [ |
| 41 |
"pre-commit==4.2.0" |
| 42 |
] |
| 43 |
|
| 44 |
[project.urls] |
| 45 |
"Source Code" = "https://github.com/Kane610/deconz" |
| 46 |
"Bug Reports" = "https://github.com/Kane610/deconz/issues" |
| 47 |
"Forum" = "https://community.home-assistant.io/t/deconz-official-thread/" |
| 48 |
|
| 49 |
[project.scripts] |
| 50 |
pydeconz = "pydeconz.__main__:main" |
| 51 |
|
| 52 |
[tool.setuptools.packages.find] |
| 53 |
include = ["pydeconz*"] |
| 54 |
|
| 55 |
[tool.setuptools.package-data] |
| 56 |
"pydeconz" = ["py.typed"] |
| 57 |
|
| 58 |
[tool.coverage.report] |
| 59 |
fail_under = 95 |
| 60 |
exclude_also = [ |
| 61 |
"if TYPE_CHECKING:" |
| 62 |
] |
| 63 |
|
| 64 |
[tool.mypy] |
| 65 |
python_version = "3.12" |
| 66 |
check_untyped_defs = true |
| 67 |
disallow_any_generics = true |
| 68 |
disallow_incomplete_defs = true |
| 69 |
disallow_subclassing_any = true |
| 70 |
disallow_untyped_calls = true |
| 71 |
disallow_untyped_decorators = true |
| 72 |
disallow_untyped_defs = true |
| 73 |
no_implicit_optional = true |
| 74 |
no_implicit_reexport = true |
| 75 |
strict_equality = true |
| 76 |
warn_redundant_casts = true |
| 77 |
warn_return_any = true |
| 78 |
warn_unreachable = true |
| 79 |
warn_unused_configs = true |
| 80 |
warn_unused_ignores = true |
| 81 |
|
| 82 |
[tool.pytest.ini_options] |
| 83 |
addopts = "--cov=pydeconz --cov-report term-missing" |
| 84 |
asyncio_mode = "auto" |
| 85 |
log_cli = false |
| 86 |
log_cli_level = "DEBUG" |
| 87 |
testpaths = ["tests"] |
| 88 |
|
| 89 |
[tool.ruff] |
| 90 |
src = ["pydeconz", "tests"] |
| 91 |
target-version = "py312" |
| 92 |
lint.select = [ |
| 93 |
"B002", |
| 94 |
"B005", |
| 95 |
"B007", |
| 96 |
"B014", |
| 97 |
"B015", |
| 98 |
"B018", |
| 99 |
"B023", |
| 100 |
"B026", |
| 101 |
"B032", |
| 102 |
"C", |
| 103 |
"COM818", |
| 104 |
"D", |
| 105 |
"E", |
| 106 |
"F", |
| 107 |
"G", |
| 108 |
"I", |
| 109 |
"ICN001", |
| 110 |
"ISC", |
| 111 |
"LOG", |
| 112 |
"N804", |
| 113 |
"N805", |
| 114 |
"N815", |
| 115 |
"PERF", |
| 116 |
"PGH004", |
| 117 |
"PIE", |
| 118 |
"PL", |
| 119 |
"PT", |
| 120 |
"RSE", |
| 121 |
"RUF005", |
| 122 |
"RUF006", |
| 123 |
"RUF100", |
| 124 |
"S307", |
| 125 |
"SIM", |
| 126 |
"T100", |
| 127 |
"T20", |
| 128 |
"UP", |
| 129 |
"W", |
| 130 |
] |
| 131 |
|
| 132 |
lint.ignore = [ |
| 133 |
"D202", |
| 134 |
"D203", |
| 135 |
"D206", |
| 136 |
"D213", |
| 137 |
"E501", |
| 138 |
"ISC001", |
| 139 |
"PLR0912", |
| 140 |
"PLR0913", |
| 141 |
"PLR0915", |
| 142 |
"PLR2004", |
| 143 |
"W191", |
| 144 |
] |
| 145 |
|
| 146 |
[tool.ruff.lint.flake8-pytest-style] |
| 147 |
fixture-parentheses = false |
| 148 |
|
| 149 |
[tool.ruff.lint.isort] |
| 150 |
force-sort-within-sections = true |
| 151 |
known-first-party = ["pydeconz"] |
| 152 |
combine-as-imports = true |
| 153 |
|
| 154 |
[tool.ruff.lint.mccabe] |
| 155 |
max-complexity = 14 |