blob: be122b45206611bb6ec98f76c0bb7e1afc0a8cc3 [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
Nishant Kumar9d06ea92017-07-20 12:13:03 -040012setenv =
13 VIRTUAL_ENV={envdir}
14 PYTHONWARNINGS=default::DeprecationWarning
Andreas Jaeger79d13902020-05-03 11:04:54 +020015deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
chenke98e029d2019-06-20 21:36:28 +080016 -r{toxinidir}/test-requirements.txt
Nishant Kumar9d06ea92017-07-20 12:13:03 -040017commands = python setup.py test --slowest --testr-args='{posargs}'
18
19[testenv:pep8]
20commands = flake8 {posargs}
21
22[testenv:venv]
23commands = {posargs}
24
Nishant Kumar9d06ea92017-07-20 12:13:03 -040025[flake8]
26# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger79d13902020-05-03 11:04:54 +020027# W503 line break before binary operator
28# W504 line break after binary operator
Nishant Kumar9d06ea92017-07-20 12:13:03 -040029show-source = True
Andreas Jaeger79d13902020-05-03 11:04:54 +020030ignore = E123,E125,W503,W504
Nishant Kumar9d06ea92017-07-20 12:13:03 -040031builtins = _
32exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build