[project]
name = "twilio-send-messages"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = ">=3.13.0, <3.14"
readme = "README.md"
dependencies = [
    "anydi>=0.47.0",
    "pydantic-settings>=2.10.1,<3",
    "fansifter-common[db]>=0.92.0",
    "snowflake-sqlalchemy>=1.7.6",
    "sentry-sdk>=2.12.0,<3",
    "datadog-lambda>=8.113.0",
    "boto3>=1.28.63,<2",
    "cryptography>=45.0.6",
    "owslogger>=4.3.0",
    "rich>=14.1.0",
]

[dependency-groups]
dev = [
    "ruff>=0.12.7",
    "pytest>=8.4.1",
    "pytest-cov>=6.2.1",
    "pytest-env>=1.1.5",
    "boto3-stubs[s3]>=1.40.3,<2",
    "polyfactory==2.22.1",
    "freezegun>=1.5.4",
    "dirty-equals>=0.9.0",
    "pyright[nodejs]>=1.1.404",
]

[build-system]
requires = ["uv_build>=0.8.5,<0.9.0"]
build-backend = "uv_build"

[tool.uv]

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

[tool.uv.build-backend]
module-name = "app"
module-root = ""

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

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

[tool.ruff.lint]
select = ["ARG", "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.pytest.ini_options]
markers = [
    "db: database marker",
]
addopts = [
    "--strict-config",
    "--strict-markers",
]
xfail_strict = true
junit_family = "xunit2"
anydi_inject_all = true
env = [
    "Environment = test",
    "APP_DEBUG = true",
    "LOG_FORMAT = console",
    "SENTRY_DSN = ",
    "DD_FLUSH_TO_LOG = true",
    "OWSREQUEST_SERVICE_MAP = {{\"ows-text-campaigns\": \"http://test-ows-text-campaigns/\"}}",
]
