-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
58 lines (52 loc) · 1.25 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
[tox]
envlist =
py36,py37,py38
format,lint,coverage
[testenv]
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py3: python3.6
commands =
pip install -r deps/testing-requirements.txt
pip install airflow-docker[testing]
pytest --cov airflow_docker --cov-report= -v {posargs:} tests/unit
setenv =
COVERAGE_FILE=tmp/.coverage.{envname}
LC_ALL=C.UTF-8
LANG=C.UTF-8
SLUGIFY_USES_TEXT_UNIDECODE=yes
[testenv:coverage]
basepython = python3.6
commands =
coverage combine tmp/
coverage report
coverage xml -o tmp/coverage.xml
coverage html -d tmp/cover --skip-covered
deps =
coverage==5.3
setenv =
COVERAGE_FILE=tmp/.coverage
SLUGIFY_USES_TEXT_UNIDECODE=yes
[testenv:lint]
basepython = python3.6
commands =
pip install airflow-docker[linting]
flake8 tests/ src/
isort -rc -c src/airflow_docker/ tests/
black --diff --check src/airflow_docker/ tests/
setenv =
SLUGIFY_USES_TEXT_UNIDECODE=yes
LC_ALL=C.UTF-8
LANG=C.UTF-8
[testenv:format]
basepython = python3.6
commands =
pip install airflow-docker[linting]
isort -rc src/airflow_docker/ tests/
black src/airflow_docker/ tests/
setenv =
SLUGIFY_USES_TEXT_UNIDECODE=yes
LC_ALL=C.UTF-8
LANG=C.UTF-8