blob: 5ea346d6325539d167dee290e9f9f5bddc672df4 [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
chenke98e029d2019-06-20 21:36:28 +08008install_command = pip install {opts} {packages}
Nishant Kumar9d06ea92017-07-20 12:13:03 -04009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
chenke98e029d2019-06-20 21:36:28 +080012deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
13 -r{toxinidir}/test-requirements.txt
Nishant Kumar9d06ea92017-07-20 12:13:03 -040014commands = python setup.py test --slowest --testr-args='{posargs}'
15
16[testenv:pep8]
Doug Hellmann54043062018-09-26 18:50:23 -040017basepython = python3
Nishant Kumar9d06ea92017-07-20 12:13:03 -040018commands = flake8 {posargs}
19
20[testenv:venv]
Doug Hellmann54043062018-09-26 18:50:23 -040021basepython = python3
Nishant Kumar9d06ea92017-07-20 12:13:03 -040022commands = {posargs}
23
Nishant Kumar9d06ea92017-07-20 12:13:03 -040024[flake8]
25# E123, E125 skipped as they are invalid PEP-8.
26
27show-source = True
28ignore = E123,E125
29builtins = _
30exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build