forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (44 loc) · 1.13 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
[tox]
skipsdist = True
envlist = py37,py38,py39,flake8,mypy
[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/postgres/dbt
deps =
-rdev-requirements.txt
[testenv:mypy]
description = mypy static type checking
basepython = python3.8
skip_install = true
commands = mypy --show-error-codes core/dbt
deps =
-rdev-requirements.txt
-reditable-requirements.txt
[testenv:{unit,py37,py38,py39,py}]
description = unit testing
skip_install = true
passenv = DBT_* PYTEST_ADDOPTS
commands = {envpython} -m pytest {posargs} test/unit
deps =
-rdev-requirements.txt
-reditable-requirements.txt
[testenv:{integration,py37,py38,py39,py}-{postgres}]
description = adapter plugin integration testing
skip_install = true
passenv = DBT_* POSTGRES_TEST_* PYTEST_ADDOPTS
commands =
postgres: {envpython} -m pytest -m profile_postgres {posargs:test/integration}
deps =
-rdev-requirements.txt
-e./core
postgres: -e./plugins/postgres
[pytest]
env_files =
test.env
testpaths =
test/unit
test/integration