-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (51 loc) · 1.24 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
[tox]
envlist =
py35,py36,py37
format,lint,coverage
[testenv]
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py3: python3.6
commands =
pip install airflow-queue-stats[testing]
pytest --cov airflow_queue_stats --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
setenv =
COVERAGE_FILE=tmp/.coverage
SLUGIFY_USES_TEXT_UNIDECODE=yes
[testenv:lint]
basepython = python3.6
commands =
pip install airflow-queue-stats[linting]
isort -rc -c src/airflow_queue_stats/ tests/
black --diff --check src/airflow_queue_stats/ 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-queue-stats[linting]
isort -rc src/airflow_queue_stats/ tests/
black src/airflow_queue_stats/ tests/
setenv =
SLUGIFY_USES_TEXT_UNIDECODE=yes
LC_ALL=C.UTF-8
LANG=C.UTF-8