Browse Source

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
Joe Gordon 4 years ago
parent
commit
b4d0280f03
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tox.ini

+ 1
- 1
tox.ini View File

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

Loading…
Cancel
Save