[project]
name = "songwhip-fan-consent-handler"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.13.0"
readme = "README.md"
dependencies = [
    "datadog-lambda>=8.123.0,<9",
    "pydantic[email]>=2.12.5,<3",
    "pydantic-settings>=2.13.1,<3",
    "fansifter-common~=0.154.0",
    "owsclient~=0.13.0",
    "sentry-sdk>=2.55.0,<3",
    "anydi~=0.74.2",
    "httpx~=0.28.0",
    "boto3>=1.42.73,<2",
    "redis>=5.3.1,<6",
    "pydantic-extra-types>=2.11.1,<3",
    "pycountry>=24.6.1,<25",
    "jinja2>=3.1.6,<4",
    "owslogger~=4.3.1",
    "rich>=14.3.3,<15",
]

[dependency-groups]
dev = [
    "ruff>=0.6.9,<0.7",
    "pyright[nodejs]>=1.1.408",
    "pytest>=8.4.2,<9",
    "pytest-mock>=3.15.1,<4",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.2.0,<2",
    "boto3-stubs[ses]>=1.42.73,<2",
]

[tool.uv]

[[tool.uv.index]]
name = "theorchard"
url = "https://pypi.theorchard.io/pypi/"

[tool.hatch.build.targets.sdist]
include = ["./app"]

[tool.hatch.build.targets.wheel]
include = ["./app"]

[tool.hatch.build.targets.wheel.sources]
"./app" = "app"

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

[tool.ruff]
line-length = 88
target-version = "py313"

[tool.ruff.lint]
select = ["C", "E", "F", "W", "B", "I", "UP", "T20", "TID252", "G"]
ignore = ["E501", "B008", "B009"]

[tool.ruff.lint.isort]
combine-as-imports = true
forced-separate = ["tests"]

[tool.pyright]
include = [
    "app/**/*.py",
    "tests/**/*.py",
]
strict = [
    "app/**/*.py",
]
pythonVersion = "3.13"
typeCheckingMode = "standard"

[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers", "-p no:anydi"]
xfail_strict = true
junit_family = "xunit2"
env = [
    "Environment = test",
    "LOG_FORMAT = console"
]
