浏览代码

support/scripts/pkg-stats: fix flake8 E402 warning

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>
(cherry picked from commit 769f98c18c94d6d684bb2efc00239ce07a02d522)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Thomas Petazzoni 5 年之前
父节点
当前提交
0ab030f188
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      support/scripts/pkg-stats

+ 1 - 1
support/scripts/pkg-stats

@@ -36,7 +36,7 @@ from urllib3.exceptions import HTTPError
 from multiprocessing import Pool
 from multiprocessing import Pool
 
 
 sys.path.append('utils/')
 sys.path.append('utils/')
-from getdeveloperlib import parse_developers
+from getdeveloperlib import parse_developers  # noqa: E402
 
 
 NVD_START_YEAR = 2002
 NVD_START_YEAR = 2002
 NVD_JSON_VERSION = "1.0"
 NVD_JSON_VERSION = "1.0"