forked from criteo/cluster-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (27 loc) · 741 Bytes
/
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
[tox]
envlist=py36-test,lint,mypy,env-check
toxworkdir={env:TOXWORKDIR:.tox}
[testenv]
basepython = {env:PYTHON:python3.6}
passenv = CRITEO_ENV
setenv = LANG = en_US.UTF-8
deps = -r tests-requirements.txt
commands =
coverage erase
coverage run -m pytest --junitxml=junit-{envname}.xml --ignore={toxworkdir}
coverage report --omit={toxworkdir}/*
coverage xml -i -o coverage-{envname}.xml
# Linter environment
[testenv:lint]
commands = pylama
skip_install = True
deps = pylama
# Runs mypy type checkings
[testenv:mypy]
commands = mypy --ignore-missing-imports --config-file setup.cfg
skip_install = True
deps = mypy
[testenv:env-check]
basepython = {env:PYTHON:python3.6}
commands = pip check
deps = -rrequirements.txt