{#- Context variables:
   - company: str (e.g., "ACME Bank")
   - industry: str (e.g., "fsi")
   - catalog: str (e.g., "acme_fsi_demo")
   - bundle_name: str (e.g., "acme-bank-fsi-demo")
   - app_name: str (e.g., "acme-bank-fsi-app")
   - warehouse_id: str
   - workspace_host: str
   - databricks_profile: str | None
   - lakebase_url: str | None
   - notification_email: str
-#}
[project]
name = "{{ bundle_name }}"
version = "0.1.0"
description = "{{ demo_title }} - Databricks Lakehouse"
readme = {text = "", content-type = "text/markdown"}
requires-python = ">=3.11"
dependencies = [
    "databricks-sdk>=0.20.0",
    "pyspark>=3.5.0",
    "delta-spark>=3.0.0",
    "faker>=22.0.0",
    "pandas>=2.0.0",
    "numpy>=1.26.0",
    "pyarrow>=14.0.0",
    "mlflow>=2.10.0",
    "scikit-learn>=1.4.0",
    "xgboost>=2.0.0",
    "databricks-feature-engineering>=0.4.0",
    "structlog>=23.0.0",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src"]

[dependency-groups]
dev = [
    "pytest>=7.0",
    "pytest-cov>=4.0",
    "ruff>=0.4.0",
    "mypy>=1.8.0",
]

[tool.ruff]
line-length = 100
src = ["src"]

[tool.ruff.lint]
select = ["E", "W", "F", "I", "N", "UP", "B", "SIM"]
ignore = [
    "E402",   # Module-level import not at top — Databricks notebook cells
    "F821",   # Undefined name — spark/dbutils are Databricks-injected globals
    "T201",   # print() — expected in notebooks
    "N806",   # Uppercase variable — intentional for Pandas UDF constants
    "N812",   # Lowercase imported as non-lowercase — 'functions as F' is Spark convention
    "SIM108", # Ternary operator — if/else clearer in notebook logic
]

[tool.mypy]
strict = true
packages = ["src"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
