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
|
[build-system]
requires = ["setuptools>=68.0,<80.10", "wheel>=0.40,<0.47"]
build-backend = "setuptools.build_meta"
[project]
name = "aiohasupervisor"
license = { text = "Apache-2.0" }
description = "Asynchronous python client for Home Assistant Supervisor."
readme = "README.md"
authors = [
{ name = "The Home Assistant Authors", email = "hello@home-assistant.io" },
]
keywords = ["docker", "home-assistant", "api", "client-library"]
requires-python = ">=3.12.0"
dependencies = [
"aiohttp>=3.3.0,<4.0.0",
"mashumaro>=3.11,<4.0",
"orjson>=3.6.1,<4.0.0",
]
# The version is set by GH action on release!
version = "0.0.0"
[project.optional-dependencies]
dev = [
# Production requirements
"aiohttp==3.12.15",
"mashumaro==3.16",
"orjson==3.11.3",
# Test requirements
"aioresponses==0.7.8",
"codespell==2.4.1",
"coverage==7.10.7",
"mypy==1.18.2",
"pre-commit==4.3.0",
"pytest-aiohttp==1.1.0",
"pytest-cov==7.0.0",
"pytest-timeout==2.4.0",
"pytest==8.4.2",
"ruff==0.13.2",
"yamllint==1.37.1",
]
[project.urls]
"Homepage" = "https://www.home-assistant.io/"
"Source Code" = "https://github.com/home-assistant-libs/python-supervisor-client"
"Bug Reports" = "https://github.com/home-assistant-libs/python-supervisor-client/issues"
"Docs: Dev" = "https://developers.home-assistant.io/"
"Discord" = "https://www.home-assistant.io/join-chat/"
"Forum" = "https://community.home-assistant.io/"
[tool.setuptools]
platforms = ["any"]
zip-safe = false
include-package-data = true
[tool.setuptools.package-data]
"aiohasupervisor" = ["py.typed"]
[tool.setuptools.packages.find]
include = ["aiohasupervisor*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = [".git"]
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(name)s:%(filename)s:%(lineno)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "auto"
filterwarnings = [
"error",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:dirhash",
"ignore::pytest.PytestUnraisableExceptionWarning",
]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN401", # Opinionated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"EM", # flake8-errmsg, more frustration then value
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"TRY003", # Avoid specifying long messages outside the exception class
# Recommended to disable due to conflicts with formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pytz".msg = "use zoneinfo instead"
[tool.ruff.lint.isort]
force-sort-within-sections = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
forced-separate = ["tests"]
known-first-party = ["aiohasupervisor", "tests"]
combine-as-imports = true
[tool.ruff.lint.mccabe]
max-complexity = 25
|