blob: 6ca7aacba771c3d884c1c068f15163d779211abb [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]
Doug Hellmann54043062018-09-26 18:50:23 -040016basepython = python3
Nishant Kumar9d06ea92017-07-20 12:13:03 -040017commands = flake8 {posargs}
18
19[testenv:venv]
Doug Hellmann54043062018-09-26 18:50:23 -040020basepython = python3
Nishant Kumar9d06ea92017-07-20 12:13:03 -040021commands = {posargs}
22
Nishant Kumar9d06ea92017-07-20 12:13:03 -040023[flake8]
24# E123, E125 skipped as they are invalid PEP-8.
25
26show-source = True
27ignore = E123,E125
28builtins = _
29exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build