forked from uplimit/course-dbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (43 loc) · 1 KB
/
tox.ini
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
[tox]
envlist = py{310}-{dbt,build,dbt-grant-usage}
skipsdist = True
skip_install = True
basepython =
3.10.6: python3.10.6
envdir =
3.10.6: {toxworkdir}/3.10.6
[base]
deps = python-dotenv==1.0.1
snowflake-sqlalchemy==1.6.1
sqlalchemy<2
jupysql==0.10.16
[jupyterlab]
deps = jupyterlab==4.3.0
[jupyter]
deps = ipykernel==6.29.5
jupyter==1.1.1
Jinja2==3.1.4
[dbt]
deps = dbt-core==1.8.8
dbt-snowflake==1.8.4
[testenv]
platform = dbt: linux
build: linux
dbt-grant-usage: linux
setenv =
DBT_SEND_ANONYMOUS_USAGE_STATS=False
changedir =
{build}: {toxinidir}/greenery/analyses
{dbt}: {toxinidir}/greenery
passenv = *
allowlist_externals =
bash
deps =
{dbt,dbt-grant-usage}: {[dbt]deps}
{build}: {[base]deps}
build: {[jupyter]deps}
build: {[jupyterlab]deps}
commands =
build: jupyter lab
dbt: dbt {posargs}
dbt-grant-usage: bash -c 'dbt run-operation grant --args "\{role_name: reporting, permission_type: usage\}"'