Add posargs support to flake8 call

Add posargs to flake8 call in tox.ini, with this you can pass arguments
directly into flake8 using the following notation
  tox -epep8 -- --FLAKE8-ARG

This can be used to pass arguments like '--statistics' to flake8

Change-Id: Ia820d62c4a1f428d60d88b04d8a4d9b1442baa09
This commit is contained in:
Joe Gordon 2014-06-15 23:42:31 -07:00
parent 939cf46efe
commit b4d0280f03
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}