Skip to content

Commit

Permalink
tox: Optionally specify a file with the pep8 and lint environments
Browse files Browse the repository at this point in the history
So developers can do things like:

  $ tox -e pep8 patchwork/tests/test_rest.py

or:

  $ tox -e lint patchwork/tests/test_rest.py

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Oct 30, 2015
1 parent eb995e8 commit 84d05c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ passenv =
[testenv:pep8]
basepython = python2.7
deps = flake
commands = flake8 {posargs} patchwork
commands = flake8 {posargs:patchwork}

[flake8]
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
Expand All @@ -34,7 +34,7 @@ basepython = python2.7
deps =
pylint
-r{toxinidir}/docs/requirements-prod.txt
commands = pylint patchwork --rcfile=pylint.rc
commands = pylint {posargs:patchwork} --rcfile=pylint.rc

[testenv:coverage]
basepython = python2.7
Expand Down

0 comments on commit 84d05c3

Please sign in to comment.