-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
45 lines (39 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
# tox -epy27
[tox]
skipsdist = True
envlist = py37, py38, py39, py310, py311, pep8, pylint, typecheck
[testenv]
whitelist_externals = make
deps = -r{toxinidir}/test-requirements.txt
extras = all
commands =
py.test --junit-xml=./utest.xml --cov-report=html --cov-report=xml:cov.xml --cov={toxinidir}/enoslib {toxinidir}/enoslib/tests/unit {posargs}
#py.test -s {toxinidir}/enoslib/tests/unit {posargs}
usedevelop = True
[testenv:pylint]
commands = pylint -rn -sn -E enoslib
[testenv:pep8]
changedir = enoslib/
commands = flake8 --ignore=E203,W503,E704
[testenv:docs]
changedir = docs/
commands =
/bin/rm -rf ../_build
make clean
make {posargs} html
[flake8]
# Calling `flake8` will read this file to find configuration
# information.
# http://flake8.pycqa.org/en/latest/user/configuration.html
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
# http://flake8.pycqa.org/en/latest/user/error-codes.html
# F821 : F821 undefined name 'basestring' (python3)
ignore = E121,E122,E123,E124,E125,E127,E128,E129,E131,E241,H405,F821, W503, W292
show-source = true
exclude = venv,.git,.tox,dist,*egg,ansible,tests,enoslib/service/skydive/skydive
max-complexity = 12
max-line-length = 88
[testenv:typecheck]
commands =
pip install -U pip
mypy --install-types --check-untyped-defs --non-interactive enoslib