[Buildroot] [git commit branch/2020.02.x] support/scripts/pkg-stats: fix flake8 E402 warning

Peter Korsgaard peter at korsgaard.com
Fri Aug 28 15:44:57 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=0ab030f1887b4f44068ce3ae38e7b489c32132c2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

flake8 complains with:

pkg-stats:38:1: E402 module level import not at top of file

This is due to sys.path.append() being before the import from
getdeveloperlib, but we really need this sys.path.append() to be
before, so let's ignore this flake8 warning.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 769f98c18c94d6d684bb2efc00239ce07a02d522)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 support/scripts/pkg-stats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index c0e2fbf413..3de4c2023c 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -36,7 +36,7 @@ from urllib3.exceptions import HTTPError
 from multiprocessing import Pool
 
 sys.path.append('utils/')
-from getdeveloperlib import parse_developers
+from getdeveloperlib import parse_developers  # noqa: E402
 
 NVD_START_YEAR = 2002
 NVD_JSON_VERSION = "1.0"


More information about the buildroot mailing list