Re-enable pep8 tests, with a minor pep8 fix
Fixes: bug #1152431 Change-Id: If2c01eb97dfd303c5130008c3cd17c83a888a51a
This commit is contained in:
parent
54acd090a8
commit
9cb2d5bc8d
@ -133,7 +133,7 @@ class Hook(object):
|
||||
|
||||
def event(self, ev_name, ev_object, ev_resource):
|
||||
if self.resource_name_get() == ev_resource and \
|
||||
ev_name in self.triggers:
|
||||
ev_name in self.triggers:
|
||||
CommandRunner(self.action).run(user=self.runas)
|
||||
else:
|
||||
LOG.debug('event: {%s, %s, %s} did not match %s' %
|
||||
|
@ -8,7 +8,7 @@ python tools/hacking.py --doctest
|
||||
PEP8='python tools/hacking.py --ignore=N101,N201,N202,N301,N302,N303,N304,N305,N306,N401,N402,N403,N404,N702,N703,N801,N902'
|
||||
|
||||
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*lib/python*'
|
||||
EXCLUDE+=',*egg,build,*tools*'
|
||||
EXCLUDE+=',*egg,build,tools'
|
||||
|
||||
# Check all .py files
|
||||
${PEP8} ${EXCLUDE} .
|
||||
|
Loading…
x
Reference in New Issue
Block a user