support/scripts/pkg-stats: fix flake8 E402 warning
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 13:24:44 +0000 (14:24 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:27:53 +0000 (15:27 +0100)
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@bootlin.com>
support/scripts/pkg-stats

index 9cfb43928b37d7e8b1adeeb0fa4a83568ca511c3..7b144a5ba644d21b033b5fa631002344359730c5 100755 (executable)
@@ -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"