[project]
name = "test-audiences-cleanup"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.12"
readme = "README.md"
dependencies = [
    "boto3>=1.36.2,<2",
    "datadog-lambda>=6.104.0,<7",
    "pydantic>=2.10.5,<3",
    "pydantic-settings>=2.7.1,<3",
    "sentry-sdk>=2.20.0,<3",
    "anydi>=0.38.0,<0.39",
    "fansifter-common[db]>=0.55.0,<0.56",
    "psycopg2-binary>=2.9.10,<3",
    "sqlalchemy[mypy]>=2.0.37,<3",
]

[dependency-groups]
dev = [
    "ruff>=0.5.0,<0.6",
    "pytest>=8.2.2,<9",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.1.3,<2",
    "faker>=33.3.1,<34",
    "pyright>=1.1.398",
]

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