blob: 328da2ed9be808530e4bfac9d0f7554e784a2ce4 [file] [log] [blame]
Nishant Kumar9d06ea92017-07-20 12:13:03 -04001[tox]
2minversion = 2.0
Sean McGinnis44fed342017-12-01 16:44:57 -06003envlist = pep8
Nishant Kumar9d06ea92017-07-20 12:13:03 -04004skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
9setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12deps = -r{toxinidir}/test-requirements.txt
13commands = python setup.py test --slowest --testr-args='{posargs}'
14
15[testenv:pep8]
16commands = flake8 {posargs}
17
18[testenv:venv]
19commands = {posargs}
20
Nishant Kumar9d06ea92017-07-20 12:13:03 -040021[flake8]
22# E123, E125 skipped as they are invalid PEP-8.
23
24show-source = True
25ignore = E123,E125
26builtins = _
27exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build