forked from tungstenfabric/tf-nova-vif-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
29 lines (26 loc) · 842 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
[tox]
minversion = 1.6
envlist = py27
skipsdist = True
[testenv]
# to be able to choose pip version with VIRTUALENV_PIP=20.2
download = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands = python -m unittest discover -v
whitelist_externals = bash
[flake8]
# Use parameters from Nova project
# H102: Ignore ApaAche header requirement on setup.py
# nova_contrail_vif ignore module level import not at top of file
enable-extensions = H106,H203,H904
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,H102
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,tools/xenserver*,releasenotes,nova_contrail_vif
max-complexity=35
[testenv:pep8]
basepython = python3
deps = {[testenv]deps}
commands =
bash tools/flake8wrap.sh {posargs}