-
Notifications
You must be signed in to change notification settings - Fork 85
/
tox.ini
82 lines (73 loc) · 1.55 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist =
py{311,312}-celery{50}-django{42}-drflatest
quality,
version_check,
pii_check,
translations-django{42}
[testenv]
deps =
django42: Django>=4.2,<4.3
drflatest: djangorestframework
celery50: -r{toxinidir}/requirements/celery50.txt
-rrequirements/test.txt
commands =
python -Wd -m pytest {posargs:-n 3}
[testenv:js_tests]
allowlist_externals =
npm
make
commands =
npm install -g gulp-cli
npm install
make test-js
[testenv:js_lint]
allowlist_externals =
npm
make
commands =
npm install -g gulp-cli
npm install
make lint-js
[testenv:rst_validation]
allowlist_externals =
make
deps =
-r{toxinidir}/requirements/quality.txt
commands =
make quality-rst
[testenv:quality]
allowlist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
pylint edx_proctoring
pycodestyle edx_proctoring
isort --check-only --diff edx_proctoring manage.py setup.py
[testenv:version_check]
deps =
-r{toxinidir}/requirements/base.txt
commands =
python {toxinidir}/edx_proctoring/scripts/version_check.py
[testenv:pii_check]
allowlist_externals =
make
deps =
-r{toxinidir}/requirements/test.txt
Django>=4.2,<4.3
commands =
make pii_check
[testenv:translations]
allowlist_externals =
make
deps =
django42: Django>=4.2,<4.3
-rrequirements/test.txt
commands =
sudo apt-get update
sudo apt-get install --no-install-recommends -y gettext
make validate_translations