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
This commit is contained in:
Samuel Merritt 2015-08-24 23:11:34 -07:00
parent 3576176167
commit a7b84f4c51

View File

@ -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]