[project]
name = "export-audience-file"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.12"
readme = "README.md"
dependencies = [
    "anydi>=0.30.0,<0.31",
    "pydantic>=2.9.2,<3",
    "pydantic-settings>=2.6.0,<3",
    "fansifter-common>=0.29.0,<0.30",
    "owsclient>=0.5.0,<0.6",
    "sentry-sdk>=2.14.0,<3",
    "datadog-lambda>=6.98.0,<7",
    "pyminizip>=0.2.6,<0.3",
    "idna==3.10",
    "boto3>=1.35.47,<2",
]

[dependency-groups]
dev = [
    "ruff>=0.7.0,<0.8",
    "pytest>=8.0.2,<9",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.1.3,<2",
    "boto3-stubs[s3]>=1.26.10,<2",
    "polyfactory>=2.7.0,<3",
    "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",
]
