Fix pep8 for new hacking
Change-Id: I0bf55e6289fdbfcb6c564976f9040278fc8f9d71
This commit is contained in:
parent
58cbb346ef
commit
185003f7dc
@ -72,7 +72,7 @@ def check_explicit_underscore_import(logical_line, filename):
|
||||
underscore_import_check_multi.match(logical_line) or
|
||||
custom_underscore_check.match(logical_line)):
|
||||
UNDERSCORE_IMPORT_FILES.append(filename)
|
||||
elif(translated_log.match(logical_line) or
|
||||
elif (translated_log.match(logical_line) or
|
||||
string_translation.match(logical_line)):
|
||||
yield (0, "M301: Found use of _() without explicit import of _ !")
|
||||
|
||||
|
@ -22,8 +22,8 @@ from masakarimonitors.hacking import checks
|
||||
|
||||
|
||||
class HackingTestCase(testtools.TestCase):
|
||||
"""This class tests the hacking checks in masakarimonitors.hacking.checks by
|
||||
passing strings to the check methods like the pycodestyle/flake8 parser
|
||||
"""This class tests the hacking checks in masakarimonitors.hacking.checks
|
||||
by passing strings to the check methods like the pycodestyle/flake8 parser
|
||||
would.
|
||||
|
||||
The parser loops over each line in the file and then passes the
|
||||
|
Loading…
x
Reference in New Issue
Block a user