-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
63 lines (52 loc) · 1013 Bytes
/
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
[tox]
envlist = black, flake8, py{36,38}
skipsdist = true
skip_missing_interpreters = True
[testenv]
passenv = *
deps =
pytest-cov
nmstate>=0.4.0
nispor
pytest>=3.5.1
setenv =
PYTHONPATH = {toxinidir}/library:{toxinidir}/module_utils
LC_ALL = C
changedir = {toxinidir}/tests
commands =
pytest \
--durations=5 \
--cov=nmstate_apply \
--cov-report=html:htmlcov-{envname} --cov-report=term \
{posargs} \
.
[testenv:black]
basepython = python3.6
deps = black
commands = black --check --diff --include "^[^.].*\.py$" .
[testenv:flake8]
deps =
flake8>=3.5
whitelist_externals = flake8
commands=
flake8 --statistics {posargs} \
.
[testenv:coveralls]
passenv = TRAVIS TRAVIS_*
deps =
coveralls
commands =
coveralls
[pytest]
addopts = -rxs
[flake8]
show_source = True
max-line-length = 88
[pylint]
max-line-length = 88
[pycodestyle]
max-line-length = 88
[travis]
python =
3.6: py36,black,coveralls,flake8
3.8: py38