forked from cloudbase/cloudbase-init-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (30 loc) · 977 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
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,pep8,pylint
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U --force-reinstall --process-dependency-links --trusted-host github.com {opts} {packages}
commands = nosetests argus/unit_tests
[testenv:pep8]
commands = flake8 argus {posargs}
deps = flake8
[testenv:pylint]
commands = pylint argus --rcfile={toxinidir}/.pylintrc {posargs}
deps = pylint==1.6.5
[testenv:cover]
commands = nosetests argus/unit_tests {posargs:--with-coverage}
deps = nose
[testenv:venv]
commands = {posargs}
[nosetests]
verbosity = 1
detailed-errors = 1
[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
ignore = E125,E251
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools