-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (35 loc) · 902 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = py{39,35}, py{39,35}-django, py{39,35}-openedx, flake8, bandit
skipsdist = True
[flake8]
max-line-length = 120
[testenv]
usedevelop = True
setenv =
PYTEST_MARKERS=not (openedx or django)
django: PYTEST_MARKERS=not openedx
openedx: PYTEST_MARKERS=
deps =
-r{toxinidir}/requirements/base.txt
django: -r{toxinidir}/requirements/django.txt
openedx: -r{toxinidir}/requirements/openedx.txt
commands=
pytest -m "{env:PYTEST_MARKERS}" {posargs}
[testenv:flake8]
basepython = python3
deps =
flake8
commands =
flake8
[testenv:bandit]
basepython = python3
deps =
bandit==1.7.1
commands =
bandit -c bandit.yaml -r site_config_client
[testenv:shell-django]
# Run arbitrary commands for migrations and otherwise e.g.
# $ tox -e shell-django -- python manage.py makemigrations site_config_client
basepython = python3
commands =
{posargs}