浏览代码

support/testing: really fix python-gitdb2 test

The test-case for python-gitdb2 consists solely in verifying that the
module can indeed be imported.

However, flake8 errors out on unused imports. Furthermore, it also
errors about wildcard imports, as it can detect unused symbols.

Commit d8c86be9cd7 (support/testing: fix python-gitdb2 test) tried to
address this issue, by explicitly squelching the two errors, F401 and
F403.

While that works on recent distros, the image used by our docker
pipeline is laggign behind and the flake8 there only handles at most a
single error in the noqa list.

Do as is done with the other python samples, and just blindly ignore
all errors.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Yann E. MORIN 5 年之前
父节点
当前提交
ed56b7b547
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      support/testing/tests/package/sample_python_gitdb2.py

+ 1 - 1
support/testing/tests/package/sample_python_gitdb2.py

@@ -1 +1 @@
-from gitdb import *  # NOQA: F401 F403
+from gitdb import *  # noqa