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:
parent
939cf46efe
commit
b4d0280f03
2
tox.ini
2
tox.ini
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user