Passing posargs to flake8

By passing posargs to flake8, we can now test pep8 of a single file by passing
file name, eg:

    tox -e pep8 magnum/common/service.py

Closes-Bug: #1460495
Change-Id: I8e143b25719c6b375dbd9fc550809f417509e65c
This commit is contained in:
Eli Qiao 2015-06-01 08:55:06 +08:00
parent 7bcb700a97
commit 2a4bfa21a9
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ deps =
{[testenv]deps}
[testenv:pep8]
commands = flake8
commands =
flake8 {posargs}
[testenv:venv]
commands = {posargs}