[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"

[project]
name = "daily-blackout-check"
version = "1.0.0"
description = "Notify an Eitaa chat about planned electricity outages"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    "jdatetime>=5,<7",
    "python-dotenv>=1,<2",
    "requests>=2.32,<3",
]

[project.optional-dependencies]
test = [
    "pytest>=8,<10",
    "ruff>=0.12,<1",
]

[project.scripts]
blackout-notifier = "blackout_notifier.cli:main"

[tool.setuptools.packages.find]
where = ["src"]

[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]

[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
