-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
51 lines (43 loc) · 1.11 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
[tox]
skipsdist = true
envlist =
black
isort
prospector
tests
tests-third-party
[testenv]
basepython = python
# code style
[testenv:black]
deps = -r{toxinidir}/requirements-dev/requirements-black.txt
commands = black --check --diff dashboard_viewer
[testenv:isort]
deps = -r{toxinidir}/requirements-dev/requirements-isort.txt
commands = isort --check-only --diff dashboard_viewer
[testenv:prospector]
deps =
-r{toxinidir}/requirements-dev/requirements-prospector.txt
-r{toxinidir}/dashboard_viewer/requirements.txt
setenv =
DJANGO_SETTINGS_MODULE=dashboard_viewer.settings
commands =
prospector dashboard_viewer
# tests
[testenv:tests]
changedir = {toxinidir}/dashboard_viewer
deps =
-r{toxinidir}/dashboard_viewer/requirements.txt
passenv = *
commands =
python manage.py test --exclude-tag third-party-app
[testenv:tests-third-party]
changedir = {toxinidir}/dashboard_viewer
deps =
-r{toxinidir}/dashboard_viewer/requirements.txt
passenv = *
setenv =
SINGLE_APPLICATION_MODE=n
MAIN_APPLICATION_HOST=mainapp.host.com
commands =
python manage.py test --tag third-party-app