Add pyflakes, picking up things that pep8 misses

This commit is contained in:
Andrew Hutchings 2012-09-14 14:28:23 +01:00
parent 7d03d16e16
commit 83064db89e
4 changed files with 7 additions and 5 deletions

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from json import dumps
import json
class ServiceFault(object):

View File

@ -35,4 +35,4 @@ class Options(object):
def _load_config(self):
self.config = ConfigParser.ConfigParser()
config.readfp(self.args.config)
self.config.readfp(self.args.config)

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import logging
import argparse
import daemon
import signal
import sys

View File

@ -1,5 +1,5 @@
[tox]
envlist = py27,pep8
envlist = py27,pep8,pyflakes
[testenv]
deps = -r{toxinidir}/tools/pip-requires
@ -8,3 +8,7 @@ commands = py.test
[testenv:pep8]
commands = py.test --pep8 -k pep8 --clearcache
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes libra