[project]
name = "validate-email-domains"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.12"
readme = "README.md"
dependencies = [
    "datadog-lambda>=6.97.0,<7",
    "pydantic>=2.8.2,<3",
    "pydantic-settings>=2.4.0,<3",
    "sentry-sdk>=2.12.0,<3",
    "anydi>=0.27.1,<0.28",
    "fansifter-common>=0.15.0,<0.16",
    "email-validator>=2.2.0,<3",
    "snowflake-connector-python>=3.12.0,<4",
    "boto3>=1.34.159,<2",
]

[dependency-groups]
dev = [
    "ruff>=0.5.7,<0.6",
    "pytest>=8.3.2,<9",
    "mypy>=1.11.1,<2",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.1.3,<2",
    "pytest-mock>=3.14.0,<4",
]

[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 = "py312"

[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.12"
strict = true
show_error_codes = true
ignore_missing_imports = true
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"
]
