Run pep8 on files in bin/

Files in bin/ don't have a .py extension, and so don't get picked
up by flake8. Add them to the flake8 command to have them checked.

Also fix an existing error in bin/pyghmicons.

Change-Id: I4db9b8c4e13c7c7f652acaa12add125f0e0458cd
This commit is contained in:
Jim Rollenhagen 2014-12-31 00:13:08 +00:00
parent 467c2e52b8
commit c0691104fb
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ try:
inputthread.daemon = True
inputthread.start()
sol.main_loop()
except:
except Exception:
currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl ^ os.O_NONBLOCK)
termios.tcsetattr(sys.stdin, termios.TCSANOW, tcattr)

View File

@ -16,7 +16,8 @@ sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8
whitelist_externals = bash
commands = bash -c 'flake8 pyghmi bin/*'
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}