Remove import-error checks from tox pylint profile 22/105422/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 12 Apr 2023 13:01:12 +0000 (15:01 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 12 Apr 2023 13:01:25 +0000 (15:01 +0200)
New Gerrit-tox JJB configuration breaks pylint request import,
what causes false positives in the CI

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-4539
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1e04d41e84d88e048ed00832ab494ca84d2bd7e1

tox.ini

diff --git a/tox.ini b/tox.ini
index 18a849c8c2521d0912a4d28891f01a5e2a348a8b..7cae5c70e9e8cf5f9b8b8dd8ddb30037f3d47ad3 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -274,7 +274,7 @@ basepython = python3
 deps = pylint>=2.6.0
 allowlist_externals = find
 commands =
-    find transportpce_tests/ -name *.py -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring --disable=fixme --disable=duplicate-code --module-rgx="([a-z0-9_]+$)|([0-9.]{1,30}$)" --method-rgx="(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$" --variable-rgx="[a-zA-Z_][a-zA-Z0-9_]{1,30}$" \{\} +
+    find transportpce_tests/ -name *.py -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code --module-rgx="([a-z0-9_]+$)|([0-9.]{1,30}$)" --method-rgx="(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$" --variable-rgx="[a-zA-Z_][a-zA-Z0-9_]{1,30}$" \{\} +
 
 [testenv:pyang]
 basepython = python3