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
/
Copy pathtox.ini
85 lines (78 loc) · 1.59 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
[tox]
envlist =
pytest
pylint
yapf
vulture
isolated_build = True
[gh-actions]
python =
3.8: py38
[testenv]
description =
Common environment.
deps =
setuptools < 58.0.0
passenv = *
setenv =
RUNNING_VIA_PYTEST=true
TESTING_MYSQL_DB=true
PY_COLORS=1
extras =
dev
[testenv:pytest]
description =
Run system and unit tests.
skip_install = False
deps =
{[testenv]deps}
pytest
pytest-cov
pytest-django
commands =
pytest {envsitepackagesdir}/autoreduce_rest_api --cov={envsitepackagesdir}/autoreduce_rest_api --cov-report=xml
[testenv:pylint]
description =
Run pylint style checks.
skip_install = False
setenv =
PYTHONPATH={envsitepackagesdir}/autoreduce_rest_api
deps =
pylint==2.14.5
pylint-django==2.5.3
commands =
pylint --version
pylint {envsitepackagesdir}/autoreduce_rest_api --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_rest_api
[testenv:vulture]
description =
Run vulture checks.
skip_install = True
deps =
vulture==2.5
commands =
vulture --version
vulture --min-confidence 90 autoreduce_rest_api
[testenv:code_inspection]
description =
Run code inspection checks.
skip_install = False
setenv =
PYTHONPATH={envsitepackagesdir}/autoreduce_rest_api
deps =
{[testenv:pylint]deps}
{[testenv:yapf]deps}
{[testenv:vulture]deps}
commands =
{[testenv:pylint]commands}
{[testenv:yapf]commands}
{[testenv:vulture]commands}