forked from openedx-unsupported/edx-analytics-data-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
29 lines (27 loc) · 900 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]
skipsdist = True
envlist = py38-django{22,30,31}-{check_isort,pycodestyle,pylint,isort,tests}
[testenv]
envdir =
py38: {toxworkdir}/py38
passenv =
ELASTICSEARCH_LEARNERS_HOST
COVERAGE_DIR
setenv =
tests: DJANGO_SETTINGS_MODULE = analyticsdataserver.settings.test
NODE_BIN = ./node_modules/.bin
PATH = $PATH:$NODE_BIN
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
-r requirements/test.txt
commands =
check_isort: isort --check-only --recursive --diff analytics_data_api/ analyticsdataserver/
isort: isort --recursive analytics_data_api/ analyticsdataserver/
clean: coverage erase
pycodestyle: pycodestyle --config=.pycodestyle analytics_data_api analyticsdataserver
pylint: pylint -j 0 --rcfile=pylintrc analytics_data_api analyticsdataserver
tests: python -Wd -m pytest {posargs}
coverage: coverage html
coverage: coverage xml