build: require Python 3.13

Home Assistant has required Python 3.13 since 2025.2, and CI already runs on
3.13. requires-python, ruff's target-version and mypy's python_version now say
so, and uv.lock drops the resolution fork it kept for Python < 3.13.
164 tests pass and pre-commit (ruff, black) is clean on the new target.
This commit is contained in:
Casey 2026-09-11 10:45:18 +02:00
commit c066c1ba99
2 changed files with 313 additions and 2052 deletions

View file

@ -8,7 +8,7 @@ version = "1.30.1"
description = "Automatically adjust brightness and color of lights based on the sun position"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.12"
requires-python = ">=3.13"
[dependency-groups]
dev = [
@ -26,7 +26,7 @@ test = [
packages = ["custom_components/adaptive_lighting"]
[tool.ruff]
target-version = "py312"
target-version = "py313"
line-length = 88
[tool.ruff.lint]
@ -49,7 +49,7 @@ ignore = [
known-first-party = ["adaptive_lighting"]
[tool.mypy]
python_version = "3.12"
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true

2351
uv.lock generated

File diff suppressed because it is too large Load diff