From 2a4bfa21a9773e7c31bd9b6fd75eea13cbcfd076 Mon Sep 17 00:00:00 2001 From: Eli Qiao Date: Mon, 1 Jun 2015 08:55:06 +0800 Subject: [PATCH] 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 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 7d3e5806a4..91f37d91d0 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,8 @@ deps = {[testenv]deps} [testenv:pep8] -commands = flake8 +commands = + flake8 {posargs} [testenv:venv] commands = {posargs}