-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
68 lines (52 loc) · 1.3 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
[tox]
minversion = 3.4.0
[testenv]
basepython = python3.6
commands_pre =
python -m pip --quiet install -e .
deps =
pytest
pytest-cov
setuptools
mock
ujson
numpy
feedparser
python-dateutil
future
install_command = python -m pip install --find-links {env:PIPCREDS} --quiet {opts} {packages}
[testenv:pytest]
# set pip config location? also, sitepackages might not be needed here
description = run pytest + list tests
sitepackages = True
setenv =
PYWIKIBOT_NO_USER_CONFIG = 1
# needed to separate the global install from the local
# deselecting slow tests for the gitlab runner
commands =
python -m pytest -v -m 'not slow' \
--cov-report xml \
--cov-report term \
--junitxml test_results.xml \
--cov=eWRT tests/
python -m pytest -v --collect-only tests/
[testenv:pylint]
description = run pylint and handle it's exit codes (in pylint.sh)
whitelist_externals =
/bin/bash
deps =
pylint
pylint-exit
commands =
/bin/bash pylint.sh
[testenv:pytest-slow]
description = run slow pytest tests
sitepackages = True
commands =
python -m pytest -v -m 'slow' --cov-report term tests/
[testenv:vulture]
description = run vulture and (hopefully) find dead code
deps =
vulture
commands =
python -m vulture src tests