blob: 4c2edbc362d450650b8d2ce0a4d9304543c1b3a9 [file] [log] [blame]
Nishant Kumar9d06ea92017-07-20 12:13:03 -04001[tox]
Brian Rosmaitae0622ed2020-01-16 15:15:44 -05002minversion = 3.1.0
Sean McGinnis44fed342017-12-01 16:44:57 -06003envlist = pep8
Nishant Kumar9d06ea92017-07-20 12:13:03 -04004skipsdist = True
Brian Rosmaitae0622ed2020-01-16 15:15:44 -05005# this allows tox to infer the base python from the environment name
6# and override any basepython configured in this file
7ignore_basepython_conflict=true
Nishant Kumar9d06ea92017-07-20 12:13:03 -04008
9[testenv]
Brian Rosmaitae0622ed2020-01-16 15:15:44 -050010basepython = python3
Nishant Kumar9d06ea92017-07-20 12:13:03 -040011usedevelop = True
chenke98e029d2019-06-20 21:36:28 +080012install_command = pip install {opts} {packages}
Nishant Kumar9d06ea92017-07-20 12:13:03 -040013setenv =
14 VIRTUAL_ENV={envdir}
15 PYTHONWARNINGS=default::DeprecationWarning
chenke98e029d2019-06-20 21:36:28 +080016deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
17 -r{toxinidir}/test-requirements.txt
Nishant Kumar9d06ea92017-07-20 12:13:03 -040018commands = python setup.py test --slowest --testr-args='{posargs}'
19
20[testenv:pep8]
21commands = flake8 {posargs}
22
23[testenv:venv]
24commands = {posargs}
25
Nishant Kumar9d06ea92017-07-20 12:13:03 -040026[flake8]
27# E123, E125 skipped as they are invalid PEP-8.
28
29show-source = True
30ignore = E123,E125
31builtins = _
32exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build