Fix pep8 for new hacking

Change-Id: I0bf55e6289fdbfcb6c564976f9040278fc8f9d71
This commit is contained in:
Vasyl Saienko 2023-11-29 12:15:51 +00:00
parent 58cbb346ef
commit 185003f7dc
2 changed files with 3 additions and 3 deletions

View File

@ -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 _ !")

View File

@ -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