From a7b84f4c51207608adc3a5de7f4f9a629053c0ab Mon Sep 17 00:00:00 2001 From: Samuel Merritt Date: Mon, 24 Aug 2015 23:11:34 -0700 Subject: [PATCH] Allow pep8 of a single file Now you can run $ tox -e pep8 path/to/file.py [path/to/file2.py [...]] to run pep8 against just those files[1]. This is quite a bit faster than a full pep8 run, and the faster feedback is nice when you're fiddling with some formatting to placate pep8. Of course, you can still run "tox -e pep8" to check the whole source tree, just as before this commit. [1] It'll still run against bin/swift* as well, but that's still a lot faster than running against all our .py files. Change-Id: I81b4363fb95a34ff0f5c346b2b24f2047154f502 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 50236788c4..ca70f1eb28 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ downloadcache = ~/cache/pip [testenv:pep8] commands = - flake8 swift test doc setup.py + flake8 {posargs:swift test doc setup.py} flake8 --filename=swift* bin [testenv:py3pep8]