Enable pyflakes on entire libra package.

Make sure pyflakes runs on entire libra/ directory.

Change-Id: If034b856f9356f06b80894b011ab743a64a88c73
This commit is contained in:
David Shrewsbury 2013-04-04 16:37:30 -04:00
parent db855f7d84
commit a6405d0ed4
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,8 @@ import daemon
import daemon.pidfile import daemon.pidfile
import daemon.runner import daemon.runner
import grp import grp
import lockfile
import os
import pwd import pwd
from libra.common.options import Options, setup_logging from libra.common.options import Options, setup_logging
@ -35,7 +37,7 @@ def main():
server = APIServer(logger, args) server = APIServer(logger, args)
if args.nodaemon: if args.nodaemon:
server.main(task_list) server.main()
else: else:
pidfile = daemon.pidfile.TimeoutPIDLockFile(args.pid, 10) pidfile = daemon.pidfile.TimeoutPIDLockFile(args.pid, 10)
if daemon.runner.is_pidfile_stale(pidfile): if daemon.runner.is_pidfile_stale(pidfile):

View File

@ -18,4 +18,4 @@ commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*openstack/
[testenv:pyflakes] [testenv:pyflakes]
deps = pyflakes deps = pyflakes
commands = pyflakes libra/common libra/mgm libra/worker commands = pyflakes libra