-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
73 lines (56 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
69
70
71
72
73
[tox]
envlist =
py38
pylint
flake8
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[flake8]
max-line-length = 120
max-complexity = 10
ignore = W605
[unittest]
commands =
py.test \
--quiet \
--cov-report term-missing \
--cov plugins \
--cov tests \
{toxinidir}/tests/a38 \
{toxinidir}/tests/covid \
{toxinidir}/tests/imdb \
{toxinidir}/tests/spotify \
{toxinidir}/tests/url_title \
{toxinidir}/tests/wp_lookup \
{toxinidir}/tests/youtube
[testenv:py36]
commands = {[unittest]commands}
[testenv:py37]
commands = {[unittest]commands}
[testenv:py38]
commands = {[unittest]commands}
[testenv:pylint]
basepython = python3
commands =
pylint \
--max-line-length=120 \
--disable=missing-docstring \
{toxinidir}/plugins \
{toxinidir}/tests \
{toxinidir}/common.py \
{toxinidir}/fetcher.py \
{toxinidir}/junkfooder.py \
{toxinidir}/plugin.py
[testenv:flake8]
basepython = python3
commands =
flake8 \
{toxinidir}/plugins \
{toxinidir}/tests \
{toxinidir}/common.py \
{toxinidir}/fetcher.py \
{toxinidir}/junkfooder.py \
{toxinidir}/plugin.py