pycodestyle: Module level import not at top of file
Changes:
- Added NOQA on python files import to skip CI
- Fix import order reported by CI.
Tested:
- CI will catch this if there is error
Change-Id: I39a11d3e815a08488671ed948f073828e19aee37
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/bin/validate_plug_ins.py b/bin/validate_plug_ins.py
index a202d2e..8e3ed1d 100755
--- a/bin/validate_plug_ins.py
+++ b/bin/validate_plug_ins.py
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
+import os
import sys
try:
import __builtin__
except ImportError:
import builtins as __builtin__
-import os
# python puts the program's directory path in sys.path[0]. In other words, the user ordinarily has no way
# to override python's choice of a module from its own dir. We want to have that ability in our environment.
@@ -17,9 +17,9 @@
save_path_0 = sys.path[0]
del sys.path[0]
-from gen_print import *
-from gen_arg import *
-from gen_plug_in import *
+from gen_print import * # NOQA
+from gen_arg import * # NOQA
+from gen_plug_in import * # NOQA
# Restore sys.path[0].
sys.path.insert(0, save_path_0)