forked from openedx/edx-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
96 lines (84 loc) · 2.8 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[tox]
envlist = py38-django{32}-celery{50}, django{32}-pii-annotations
[doc8]
max-line-length = 120
[pytest]
DJANGO_SETTINGS_MODULE = enterprise.settings.test
addopts = --cov enterprise --cov enterprise_learner_portal --cov consent --cov integrated_channels --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements node_modules
[isort]
line_length = 120
known_edx =
known_django = django
known_djangoapp = model_utils
known_first_party = consent,enterprise,enterprise_learner_portal,integrated_channels
include_trailing_comma = true
multi_line_output = 3
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOAPP,EDX,FIRSTPARTY,LOCALFOLDER
[wheel]
universal = 1
[testenv]
setenv =
TOXENV={envname}
deps =
django32: Django>=3.2,<4.0
celery50: -r{toxinidir}/requirements/celery50.txt
-r{toxinidir}/requirements/test.txt
commands =
py.test -Wd {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = enterprise.settings.test
PYTHONPATH = {toxinidir}
whitelist_externals =
make
rm
deps =
-r{toxinidir}/requirements/doc.txt
commands =
doc8 --ignore-path docs/decisions README.rst docs
rm -f docs/enterprise.rst
rm -f docs/modules.rst
make -C docs clean
make -C docs html
python setup.py check --restructuredtext --strict
[testenv:isort]
deps =
-r{toxinidir}/requirements/dev.txt
commands =
isort --skip migrations tests test_utils enterprise enterprise_learner_portal consent integrated_channels manage.py setup.py
[testenv:isort-check]
deps =
-r{toxinidir}/requirements/dev.txt
commands =
isort --skip migrations --check-only --diff tests test_utils enterprise enterprise_learner_portal consent integrated_channels manage.py setup.py
[testenv:quality]
setenv =
DJANGO_SETTINGS_MODULE = enterprise.settings.test
whitelist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/dev.txt
commands =
touch tests/__init__.py
pylint -j 0 enterprise enterprise_learner_portal consent integrated_channels tests test_utils requirements/check_pins.py --django-settings-module=enterprise.settings.test
rm tests/__init__.py
pycodestyle enterprise enterprise_learner_portal consent integrated_channels tests test_utils
isort --skip migrations --check-only --diff tests test_utils enterprise enterprise_learner_portal consent integrated_channels manage.py setup.py
[testenv:jasmine]
passenv = JASMINE_BROWSER DISPLAY
deps =
django32: Django>=3.2,<4.0
-r{toxinidir}/requirements/js_test.txt
commands =
jasmine
[testenv:pii-annotations]
setenv =
DJANGO_SETTINGS_MODULE = enterprise.settings.test
deps =
django32: Django>=3.2,<4.0
-r{toxinidir}/requirements/test.txt
commands =
code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage