[project]
name = "hass-oidc-auth"
version = "1.0.0"
description = "OIDC component for Home Assistant"
authors = [
    { name = "Christiaan Goossens", email = "contact@christiaangoossens.nl" }
]
license = "MIT"
dependencies = [
    "aiofiles~=25.1",
    "jinja2~=3.1",
    "joserfc~=1.6.0",
]
readme = "README.md"
requires-python = "~=3.14.4"

[dependency-groups]
dev = [
    "homeassistant~=2026.4",
    "pylint~=4.0",
    "pytest~=9.0.0",
    "pytest-asyncio~=1.3.0",
    "pytest-cov~=7.0.0",
    "pytest-homeassistant-custom-component~=0.13.308",
    "ruff~=0.12",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv]
managed = true
override-dependencies = [
    "orjson>=3.11.8,<3.12.0",
    "pyjwt>=2.12.0,<2.13.0",
    "pillow>=12.2.0,<12.3.0",
    "pytest>=9.0.3,<9.1.0",
    "uv>=0.11.6,<0.12.0",
]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["custom_components/auth_oidc"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--cov=custom_components --cov-fail-under=0"
log_level = "DEBUG"

[tool.ruff]
target-version = "py313"