diff mbox series

[11/11] bitbake-setup: Sort and format imports

Message ID 20260326185742.542268-12-rob.woolley@windriver.com
State New
Headers show
Series [01/11] bitbake-setup: Remove extraneous variable from str.format() | expand

Commit Message

Rob Woolley March 26, 2026, 6:57 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 6b210cd3e..ce712e517 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -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)