forked from openedx/ecommerce-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
28 lines (24 loc) · 672 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
[tox]
envlist = py{38},quality
skipsdist = true
[isort]
include_trailing_comma = True
indent = ' '
line_length = 120
multi_line_output = 3
[pytest]
testpaths = tests/
norecursedirs = .* requirements
[testenv]
setenv =
WORKER_CONFIGURATION_MODULE = ecommerce_worker.configuration.test
deps =
-r{toxinidir}/requirements/test.txt
commands =
pytest ecommerce_worker --cov-branch --cov-report=html:build/coverage/html/html/ \
--cov-report term --cov-report=xml:build/coverage/coverage.xml \
--cov=ecommerce_worker
[testenv:quality]
commands =
pycodestyle --config=.pycodestyle ecommerce_worker
pylint --rcfile=pylintrc ecommerce_worker