[elbe-devel] [PATCH 03/75] .pylintrc: Add disabling option and pkg whitelist

Olivier Dion dion at linutronix.de
Mon May 25 17:41:56 CEST 2020


lxml is a C based package.  Adding it to the white list.

Disabling check for:

  - import-error; because host might not have python-apt for example.
    Tho this could be useful on the guest side.

  - fixme; TODO comments should not make tests fail.

  - duplicate-code; Seems like a bug in pylint that messed up with
    importation and think there's duplicate-code.  There's is however
    duplicate code in Elbe, but I don't think it's that much of a
    problem.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 .pylintrc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.pylintrc b/.pylintrc
index d3c9cb18..b516d511 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -27,6 +27,8 @@ persistent=yes
 # usually to register additional checkers.
 load-plugins=
 
+extension-pkg-whitelist=lxml
+
 
 [MESSAGES CONTROL]
 
@@ -39,7 +41,8 @@ load-plugins=
 # can either give multiple identifier separated by comma (,) or put this option
 # multiple time (only on the command line, not in the configuration file where
 # it should appear only once).
-disable=bad-whitespace,missing-docstring,bad-continuation,invalid-name,line-too-long,too-few-public-methods
+
+disable=bad-whitespace,missing-docstring,bad-continuation,invalid-name,line-too-long,too-few-public-methods,import-error,fixme,duplicate-code
 
 
 [REPORTS]
-- 
2.26.2




More information about the elbe-devel mailing list