blob: c9c91adf05041b83f020224ba9c7d47c28f9abae [file] [log] [blame]
Nishant Kumar9d06ea92017-07-20 12:13:03 -04001[tox]
tushargite96040eb502021-06-29 15:24:25 +05302minversion = 3.18.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
Luigi Toscano7c472222021-02-09 22:47:08 +010015 OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
16 OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
17 OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
Andreas Jaeger79d13902020-05-03 11:04:54 +020018deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
chenke98e029d2019-06-20 21:36:28 +080019 -r{toxinidir}/test-requirements.txt
Luigi Toscano7c472222021-02-09 22:47:08 +010020commands = stestr run --slowest {posargs}
Nishant Kumar9d06ea92017-07-20 12:13:03 -040021
22[testenv:pep8]
23commands = flake8 {posargs}
24
25[testenv:venv]
26commands = {posargs}
27
Nishant Kumar9d06ea92017-07-20 12:13:03 -040028[flake8]
29# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger79d13902020-05-03 11:04:54 +020030# W503 line break before binary operator
31# W504 line break after binary operator
Rajat Dhasmanadf4f9472021-01-29 11:41:02 -050032# H101 include name with TODO
33# reason: no real benefit
Nishant Kumar9d06ea92017-07-20 12:13:03 -040034show-source = True
Rajat Dhasmanadf4f9472021-01-29 11:41:02 -050035ignore = E123,E125,W503,W504,H101
Nishant Kumar9d06ea92017-07-20 12:13:03 -040036builtins = _
37exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build