Modify tox.ini to reflect patch tests

So right now flake8 is in our tox.ini but not in the upstream
infra config. Meaning if you run tox locally with the hope of
finding and fixing linter errors in your patch you get about
100 lines of docstring errors that aren't actually enforced
when you upload your patch to gerrit. We need to either chose
to enforce those rules on gerrit (and write a lot of docstrings)
or change the tox.ini to reflect the actual gates better so that
we can more easily debug locally.

Change-Id: Id0456f53d176eb1d13c3bc22ef43b62772a86b89
This commit is contained in:
jkilpatr 2017-08-24 08:23:14 -04:00
parent 57e4c042ca
commit 4f5c85e654

View File

@ -14,7 +14,7 @@ deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
commands = pep8 {posargs}
[testenv:venv]
commands = {posargs}
@ -28,7 +28,7 @@ commands = python setup.py build_sphinx
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
[pep8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True