Remove import-error checks from tox pylint profile 17/105517/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 12 Apr 2023 13:01:12 +0000 (15:01 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 19 Apr 2023 17:10:57 +0000 (19:10 +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 9a396a1e15ea34305fc75d4e062b22beec6ce558..778607874c0d8de07b7ca3169c9dbb29b2bc62be 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -318,7 +318,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