[project]
name = "briteverify-email-validator"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
readme = "README.md"
requires-python = "~=3.13.0"
dependencies = [
    "anydi~=0.68.0",
    "boto3>=1.42.61",
    "datadog-lambda>=8.123.0",
    "fansifter-common[db]>=0.116.0",
    "httpx>=0.27.2",
    "owslogger>=4.3.1",
    "pydantic>=2.12.5",
    "pydantic-settings>=2.13.1",
    "rich>=14.3.3",
    "sentry-sdk>=2.54.0",
    "snowflake-sqlalchemy>=1.9.0",
]

[dependency-groups]
dev = [
    "polyfactory>=3.3.0",
    "pyright[nodejs]>=1.1.408",
    "pytest>=9.0.2",
    "pytest-cov>=7.0.0",
    "pytest-docker>=3.2.5",
    "pytest-env>=1.5.0",
    "ruff>=0.15.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 = "py313"
include = [
    "app/**/*.py",
    "tests/**/*.py"
]

[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.pyright]
include = [
    "app/**/*.py",
    "tests/**/*.py",
]
strict = [
    "app/**/*.py",
]
typeCheckingMode = "standard"

[tool.pytest.ini_options]
addopts = [
    "--strict-config",
    "--strict-markers",
]
xfail_strict = true
junit_family = "xunit2"
anydi_autoinject = true
env = [
    "Environment = test",
    "APP_DEBUG = true",
    "SNOWFLAKE_USER = postgres",
    "SNOWFLAKE_PASSWORD = postgres",
    "D:SNOWFLAKE_HOST = localhost",
    "D:SNOWFLAKE_PORT = 7443",
    "D:SNOWFLAKE_DATABASE = app_reporting_test",
    "LOGGING_DEBUG = true",
    "SENTRY_DSN = ",
    "DD_FLUSH_TO_LOG = true",
]

[tool.coverage.run]
branch = true
source = ["app"]

omit = [
    "app/config.py",
    "app/container.py",
]

[tool.coverage.report]
exclude_also = [
    "@abstractmethod",
    "@abc.abstractmethod",
    "if TYPE_CHECKING",
    "raise NotImplementedError",
    "if settings.sentry_dsn:",
]
