[project]
name = "fivetran-webhooks"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.12"
readme = "README.md"
dependencies = [
    "pydantic>=2.1.1,<3",
    "fansifter-common>=0.22.0,<0.23",
    "owsclient>=0.2.0,<0.3",
    "python-dotenv>=1.0.1,<2",
    "sentry-sdk>=2.14.0,<3",
    "datadog-lambda>=6.98.0,<7",
    "boto3>=1.26.56,<2",
    "idna==3.10",
]

[dependency-groups]
dev = [
    "ruff>=0.6.7,<0.7",
    "pytest>=8.3.3,<9",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.1.5,<2",
    "pytest-mock>=3.10.0,<4",
    "yamllint>=1.28.0,<2",
    "faker>=29.0.0,<30",
    "polyfactory==2.17.0",
    "boto3-stubs>=1.37.19",
    "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 = "py311"

[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",
]
xfail_strict = true
junit_family = "xunit2"
env = [
    "ENVIRONMENT = test",
    "FIVETRAN_SHOPIFY_GROUP_ID = test",
    "FIVETRAN_REPORTING_GROUP_ID = test"
]
