This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
108 lines (100 loc) · 2.18 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
96
97
98
99
100
101
102
103
104
105
106
107
108
[tox]
envlist =
pages
integration
pylint
yapf
vulture
isolated_build = True
[gh-actions]
python =
3.8: py38
[testenv]
description =
Common environment.
deps =
setuptools < 58.0.0
passenv = *
setenv =
PY_COLORS=1
extras =
dev
[testenv:pages]
description =
Run Selenium Pages tests.
skip_install = False
setenv =
SELENIUM_REMOTE=1
RUNNING_VIA_PYTEST=true
PY_COLORS=1
deps =
{[testenv]deps}
pytest
pytest-cov
pytest-django
commands =
pip list
pytest {envsitepackagesdir}/autoreduce_frontend --cov-report=xml --cov={envsitepackagesdir}/autoreduce_frontend \
--ignore={envsitepackagesdir}/autoreduce_frontend/selenium_tests/tests/integration --showlocals -v
[testenv:integration]
description =
Run Selenium Integration tests.
skip_install = False
setenv =
SELENIUM_REMOTE=1
RUNNING_VIA_PYTEST=true
TESTING_MYSQL_DB=true
PY_COLORS=1
deps =
{[testenv]deps}
pytest
pytest-cov
pytest-django
commands =
pytest {envsitepackagesdir}/autoreduce_frontend/selenium_tests/tests/integration \
--cov-report=xml --cov={envsitepackagesdir}/autoreduce_frontend --showlocals -v
[testenv:pylint]
description =
Run pylint style checks.
skip_install = False
setenv =
PYTHONPATH={envsitepackagesdir}/autoreduce_frontend
deps =
pylint==2.14.5
pylint-django==2.5.3
commands =
pylint --version
pylint {envsitepackagesdir}/autoreduce_frontend --output-format=colorized
[testenv:yapf]
description =
Run yapf style checks.
skip_install = True
deps =
yapf==0.32.0
toml
commands =
yapf --version
yapf --parallel --diff --recursive autoreduce_frontend
[testenv:vulture]
description =
Run vulture checks.
skip_install = True
deps =
vulture==2.5
commands =
vulture --version
vulture --min-confidence 90 autoreduce_frontend
[testenv:code_inspection]
description =
Run code inspection checks.
skip_install = False
setenv =
PYTHONPATH={envsitepackagesdir}/autoreduce_frontend
deps =
{[testenv:pylint]deps}
{[testenv:yapf]deps}
{[testenv:vulture]deps}
commands =
{[testenv:pylint]commands}
{[testenv:yapf]commands}
{[testenv:vulture]commands}