Follow-up to improve pep8 checking with hacking
This patch will make consistency with Nova, Cinder and other projects in openstack. It's going to rename D703 to N323. Change-Id: I3fe63590c72b65b97f120c96f7b566a771c7087c
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# D703: Found use of _() without explicit import of _!
|
# N323: Found use of _() without explicit import of _!
|
||||||
|
|
||||||
|
|
||||||
UNDERSCORE_IMPORT_FILES = []
|
UNDERSCORE_IMPORT_FILES = []
|
||||||
@@ -48,7 +48,7 @@ def check_explicit_underscore_import(logical_line, filename):
|
|||||||
UNDERSCORE_IMPORT_FILES.append(filename)
|
UNDERSCORE_IMPORT_FILES.append(filename)
|
||||||
elif (translated_log.match(logical_line) or
|
elif (translated_log.match(logical_line) or
|
||||||
string_translation.match(logical_line)):
|
string_translation.match(logical_line)):
|
||||||
yield(0, "D703: Found use of _() without explicit import of _!")
|
yield(0, "N323: Found use of _() without explicit import of _!")
|
||||||
|
|
||||||
|
|
||||||
def factory(register):
|
def factory(register):
|
||||||
|
Reference in New Issue
Block a user