From 423225046cd79d46c0f66f60b79733245d965e80 Mon Sep 17 00:00:00 2001 From: Nguyen Van Trung Date: Thu, 26 Jul 2018 10:29:41 +0700 Subject: [PATCH] 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 --- ironic/hacking/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic/hacking/checks.py b/ironic/hacking/checks.py index 3cdd4c07fb..b502af02b1 100644 --- a/ironic/hacking/checks.py +++ b/ironic/hacking/checks.py @@ -14,7 +14,7 @@ import re -# D703: Found use of _() without explicit import of _! +# N323: Found use of _() without explicit import of _! UNDERSCORE_IMPORT_FILES = [] @@ -48,7 +48,7 @@ def check_explicit_underscore_import(logical_line, filename): UNDERSCORE_IMPORT_FILES.append(filename) elif (translated_log.match(logical_line) or 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):