[project]
name = "sendgrid-webhooks"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.13.0"
readme = "README.md"
dependencies = [
    "boto3>=1.42.69,<2",
    "datadog-lambda>=8.123.0,<9",
    "pydantic>=2.12.5,<3",
    "pydantic-settings>=2.13.1,<3",
    "sentry-sdk>=2.55.0,<3",
    "anydi>=0.74.2,<0.75",
    "fansifter-common==0.123.0",
    "sendgrid>=6.12.5,<7",
    "confluent-kafka>=2.13.2,<3",
    "owslogger>=4.3.1,<5",
    "rich>=14.3.3,<15",
    "starkbank-ecdsa>=2.2.0,<3",
]

[dependency-groups]
dev = [
    "ruff>=0.15.6",
    "pytest>=9.0.2",
    "mypy>=1.19.1",
    "pytest-cov>=7.0.0",
    "pytest-env>=1.6.0",
]

[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.mypy]
python_version = "3.13"
strict = true
show_error_codes = true
ignore_missing_imports = true
disable_error_code = ["assignment"]
plugins = ["pydantic.mypy"]

[[tool.mypy.overrides]]
module = []
ignore_missing_imports = true

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