[project]
name = "ad-thumbnail-download"
version = "0.1.4"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.13.0"
readme = "README.md"
dependencies = [
    "pydantic>=2.12.5",
    "pydantic-settings>=2.12.0",
    "fansifter-common[db]>=0.109.0",
    "anydi>=0.65.0",
    "sentry-sdk>=2.48.0",
    "datadog-lambda>=8.120.0",
    "boto3>=1.42.21",
    "snowflake-connector-python>=4.1.1",
    "pillow>=12.1.0",
    "opencv-python-headless>=4.12.0.88",
    "snowflake-sqlalchemy>=1.8.2",
    "sqlalchemy-utils>=0.42.1",
    "rich>=14.2.0",
    "owslogger>=4.3.1",
]

[dependency-groups]
dev = [
    "ruff>=0.14.10",
    "pytest>=9.0.2",
    "pytest-cov>=7.0.0",
    "pytest-env>=1.2.0",
    "pytest-mock>=3.15.1",
    "boto3-stubs[kms,s3]>=1.42.21",
    "polyfactory>=3.2.0",
    "types-pillow>=10.2.0.20240822",
    "pytest-asyncio>=1.3.0",
    "psycopg2-binary>=2.9.11",
    "pyright[nodejs]>=1.1.407",
]

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

[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",
]
asyncio_mode = "auto"
xfail_strict = true
junit_family = "xunit2"
env = [
    "Environment = test",
    "LOG_FORMAT = console"
]
