blob: 473a6c63d4fcab20abf496e373d061b1ddf8ce81 [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
Rajat Dhasmanadf4f9472021-01-29 11:41:02 -050029# H101 include name with TODO
30# reason: no real benefit
Nishant Kumar9d06ea92017-07-20 12:13:03 -040031show-source = True
Rajat Dhasmanadf4f9472021-01-29 11:41:02 -050032ignore = E123,E125,W503,W504,H101
Nishant Kumar9d06ea92017-07-20 12:13:03 -040033builtins = _
34exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build