[project]
name = "dbt-audience"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
readme = "README.md"
requires-python = "~=3.13.0"
dependencies = [
    "dbt-snowflake~=1.10.4",
    "snowflake-snowpark-python~=1.44.0",
    "elementary-data[snowflake]==0.16.1",
    "phonenumbers~=8.13.38",
    "email-validator~=2.2.0",
    "langcodes>=3.3.0",
]

[dependency-groups]
dev = [
    "boto3>=1.39.17",
    "redis>=7.1.0",
    "sqlfluff~=3.4.2",
    "sqlfluff-templater-dbt~=3.4.2",
]

[tool.uv]

[[tool.uv.index]]
name = "theorchard"
url = "https://pypi.theorchard.io/pypi/"

[tool.sqlfluff.core]
templater = "dbt"
sql_file_exts = ".sql"
dialect = "snowflake"
exclude_rules = "L031, L034, RF02"

[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "upper"

[tool.sqlfluff.rules.capitalisation.identifiers]
extended_capitalisation_policy = "upper"

[tool.sqlfluff.layout.type.join_clause]
line_position = "alone"
keyword_line_position = "leading"
