-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (90 loc) · 2.76 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.poetry]
name = "dbt-alert"
version = "0.0.0"
description = "Triggering alerts from DWH managed by dbt"
authors = ["Infinite Lambda <[email protected]>"]
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/infinitelambda/dbt-alert"
homepage = "https://infinitelambda.com"
documentation = "https://dbt-alert.iflambda.com/latest/"
keywords = ["packaging", "dbt", "alert", "pii", "markdown", "lint"]
classifiers = [
"Topic :: dbt Package Development :: Documentation",
"Topic :: dbt Package Development :: Testing",
"Topic :: dbt Package :: Notification Management",
]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
dbt-core = "^1.7.0"
dbt-snowflake = "^1.7.0"
[tool.poetry.dev-dependencies]
pre-commit = "^2.17.0"
poethepoet = "^0.16.4"
sqlfluff = "^2.3.5"
sqlfluff-templater-dbt = "^2.3.5"
mkdocs = "^1.5.3"
mkdocs-material = "^9.4.8"
mkdocs-minify-plugin = "^0.7.1"
mike = "^2.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.sqlfluff.core]
templater = "dbt"
dialect = "snowflake"
sql_file_exts = ".sql,.sql.j2,.dml,.ddl"
max_line_length = 120
[tool.sqlfluff.templater.dbt]
profile = "dbt_alert"
[tool.sqlfluff.rules]
allow_scalar = true
single_table_references = "consistent"
unquoted_identifiers_policy = "all"
[tool.sqlfluff.layout.type.comma]
line_position = "leading"
[tool.sqlfluff.indentation]
tab_space_size = 2
indent_unit = "space"
[toolsqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "lower"
[toolsqlfluff.rules.capitalisation.functions]
capitalisation_policy = "lower"
[tool.sqlfluff.templater]
unwrap_wrapped_queries = true
[tool.sqlfluff.templater.jinja]
apply_dbt_builtins = true
[tool.poe.tasks]
git-hooks = { shell = "pre-commit install --install-hooks && pre-commit install --hook-type commit-msg" }
format = [
{cmd = "dbt clean"},
{cmd = "dbt deps"},
{cmd = "sqlfluff format . --dialect snowflake"},
]
lint = [
{cmd = "dbt clean"},
{cmd = "dbt deps"},
{cmd = "sqlfluff lint . --dialect snowflake"},
]
dbt-alert-verify = [
{cmd = "dbt deps --project-dir integration_tests"},
{cmd = "dbt debug --project-dir integration_tests"},
]
dbt-alert-test = [
{cmd = "dbt deps --project-dir integration_tests"},
{cmd = "dbt run --project-dir integration_tests"},
]
build-doc = [
{cmd = "dbt deps --project-dir integration_tests"},
{cmd = "dbt docs generate --select package:dbt_alert --project-dir integration_tests"},
{cmd = "mkdocs build"}
]
build-doc-and-serve = [
{cmd = "poe build-doc"},
{cmd = "mkdocs serve"}
]
git-push-github = [
{cmd = "git remote set-url origin https://github.com/infinitelambda/dbt-alert.git"},
{cmd = "git push"},
{cmd = "git remote set-url origin [email protected]:infinitelambda/bi-chapter/dbt-alert.git"}
]