forked from openedx/edx-proctoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (51 loc) · 1.29 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 = {py27}-django{18,111}
[doc8]
max-line-length = 120
[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120
[pydocstyle]
; D101 = Missing docstring in public class
; D200 = One-line docstring should fit on one line with quotes
; D203 = 1 blank line required before class docstring
; D212 = Multi-line docstring summary should start at the first line
ignore = D101,D200,D203,D212
match-dir = (?!migrations)
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
deps =
django18: Django>=1.8,<1.9
django111: Django>=1.11,<2.0
-rrequirements/test.txt
commands =
coverage run ./manage.py test {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
whitelist_externals =
make
rm
deps =
-r{toxinidir}/requirements/doc.txt
commands =
doc8 --ignore-path docs/_build README.rst docs
rm -f docs/edx_proctoring.rst
rm -f docs/modules.rst
make -C docs clean
make -C docs html
python setup.py check --restructuredtext --strict
[testenv:quality]
whitelist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/doc.txt
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
pylint edx_proctoring
pycodestyle edx_proctoring