[PATCH v4 11/11] bitbake-setup: Add exception for E402 for bb.__version__
Rob Woolley <[email protected]> Wed, 24 Jun 2026 10:20:11 -0700
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
The ruff linter reported:
E402 Module level import not at top of file
Add an exception for bb.__version__ to match the other imports
that are happening after the modifications to sys.path.
Signed-off-by: Rob Woolley <[email protected]>
---
bin/bitbake-setup | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 525187ddf..ce80809e7 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -28,7 +28,7 @@ sys.path[0:0] = [os.path.join(os.path.dirname(bindir), 'lib')]
import bb.msg # noqa: E402
import bb.process # noqa: E402
-from bb import __version__ as libbb_version
+from bb import __version__ as libbb_version # noqa: E402
if __name__ == "__main__":
if __version__ != libbb_version:
--
2.49.0