@@ -4,28 +4,29 @@
# SPDX-License-Identifier: GPL-2.0-only
#
-import logging
-import os
-import sys
import argparse
-import json
-import shutil
-import time
import configparser
+import copy
import datetime
+import functools
import glob
-import subprocess
-import copy
-import textwrap
+import json
+import logging
+import os
+import shutil
import signal
-import functools
import string
+import subprocess
+import sys
+import textwrap
+import time
+
bindir = os.path.abspath(os.path.dirname(__file__))
sys.path[0:0] = [os.path.join(os.path.dirname(bindir), 'lib')]
-import bb.msg
-import bb.process
+import bb.msg # noqa: E402
+import bb.process # noqa: E402
logger = bb.msg.logger_create('bitbake-setup', sys.stdout)
The ruff linting tool reported 2 problems: I001 Import block is un-sorted or un-formatted E402 Module level import not at top of file An exception is made for sys.path modifications needed to find the modules. Signed-off-by: Rob Woolley <rob.woolley@windriver.com> --- bin/bitbake-setup | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)