forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (56 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
[tox]
skipsdist = True
envlist = py36,py37,py38,flake8,mypy
[testenv]
description = unit testing
skip_install = true
commands = {envpython} -m pytest {posargs} test/unit
deps =
-rdev-requirements.txt
-reditable-requirements.txt
[testenv:flake8]
description = flake8 code checks
basepython = python3.8
skip_install = true
commands = flake8 --select=E,W,F --ignore=W504,E741 --max-line-length 99 \
core/dbt \
plugins/bigquery/dbt \
plugins/snowflake/dbt \
plugins/postgres/dbt \
plugins/redshift/dbt
deps =
-rdev-requirements.txt
[testenv:mypy]
description = mypy static type checking
basepython = python3.8
skip_install = true
commands = mypy core/dbt
deps =
-rdev-requirements.txt
-reditable-requirements.txt
[testenv:py{36,37,38,39,}-{postgres,redshift,snowflake,bigquery}]
description = adapter plugin integration testing
skip_install = true
passenv = *
commands =
postgres: {envpython} -m pytest {posargs} -m profile_postgres test/integration
postgres: {envpython} -m pytest {posargs} --profile=postgres test/rpc
redshift: {envpython} -m pytest {posargs} -m profile_redshift test/integration
snowflake: {envpython} -m pytest {posargs} -m profile_snowflake test/integration
snowflake: {envpython} -m pytest {posargs} --profile=snowflake test/rpc
bigquery: {envpython} -m pytest {posargs} -m profile_bigquery test/integration
deps =
-rdev-requirements.txt
-e./core
postgres: -e./plugins/postgres
redshift: -e./plugins/redshift
redshift: -e./plugins/postgres
snowflake: -e./plugins/snowflake
bigquery: -e./plugins/bigquery
[pytest]
env_files =
test.env
testpaths =
test/unit
test/integration
test/rpc