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:
parent
467c2e52b8
commit
c0691104fb
|
@ -78,7 +78,7 @@ try:
|
||||||
inputthread.daemon = True
|
inputthread.daemon = True
|
||||||
inputthread.start()
|
inputthread.start()
|
||||||
sol.main_loop()
|
sol.main_loop()
|
||||||
except:
|
except Exception:
|
||||||
currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
|
currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
|
||||||
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl ^ os.O_NONBLOCK)
|
fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl ^ os.O_NONBLOCK)
|
||||||
termios.tcsetattr(sys.stdin, termios.TCSANOW, tcattr)
|
termios.tcsetattr(sys.stdin, termios.TCSANOW, tcattr)
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -16,7 +16,8 @@ sitepackages = True
|
||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
whitelist_externals = bash
|
||||||
|
commands = bash -c 'flake8 pyghmi bin/*'
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
|
Loading…
Reference in New Issue