[elbe-devel] [PATCH 23/37] Revisit pylint configuration

Eduard Krein eduard.krein at linutronix.de
Wed Feb 7 16:27:47 CET 2024



Am 07.02.2024 um 15:28 schrieb Benedikt Spranger:
> Recent pylint (2.17.4) version complained about orphaned and unknown
> options in .pylintrc. Revistit the configuration.
> 
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
>  .pylintrc | 27 +--------------------------
>  1 file changed, 1 insertion(+), 26 deletions(-)
> 
> diff --git a/.pylintrc b/.pylintrc
> index 543c15e7..edaa779f 100644
> --- a/.pylintrc
> +++ b/.pylintrc
> @@ -11,9 +11,6 @@
>  # pygtk.require().
>  #init-hook=
>  
> -# Profiled execution.
> -profile=no
> -
>  # Add files or directories to the blacklist. They should be base names, not
>  # paths.
>  ignore=CVS
> @@ -39,7 +36,7 @@ extension-pkg-whitelist=apt_pkg,gpg.constants,lxml,_ped
>  # 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=missing-docstring,invalid-name,line-too-long,too-few-public-methods
>  
>  
>  [REPORTS]
> @@ -48,14 +45,6 @@ disable=bad-whitespace,missing-docstring,bad-continuation,invalid-name,line-too-
>  # (visual studio) and html
>  output-format=text
>  
> -# Include message's id in output
> -include-ids=no
> -
> -# Put messages in a separate file for each module / package specified on the
> -# command line instead of printing them on stdout. Reports (if any) will be
> -# written in a file name "pylint_global.[txt|html]".
> -files-output=no
> -
>  # Tells whether to display a full report or only the messages
>  reports=yes
>  
> @@ -66,10 +55,6 @@ reports=yes
>  # (RP0004).
>  evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
>  
> -# Add a comment according to your evaluation note. This is used by the global
> -# evaluation report (RP0004).
> -comment=no
> -
>  
>  [VARIABLES]
>  
> @@ -107,10 +92,6 @@ ignore-mixin-members=yes
>  # (useful for classes with attributes dynamically set).
>  ignored-classes=SQLObject
>  
> -# When zope mode is activated, add a predefined set of Zope acquired attributes
> -# to generated-members.
> -zope=no
> -
>  # List of members which are set dynamically and missed by pylint inference
>  # system, and so shouldn't trigger E0201 when accessed. Python regular
>  # expressions are accepted.
> @@ -119,9 +100,6 @@ generated-members=REQUEST,acl_users,aq_parent,sigsum.*,sig\.mode\.NORMAL
>  
>  [BASIC]
>  
> -# List of builtins function names that should not be used, separated by a comma
> -bad-functions=map,filter,apply,input
> -
>  # Regular expression which should only match correct module names
>  module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
>  
> @@ -195,9 +173,6 @@ max-locals=15
>  # Maximum number of return / yield for function / method body
>  max-returns=6
>  
> -# Maximum number of branch for function / method body
> -max-branchs=12
> -
>  # Maximum number of statements in function / method body
>  max-statements=50
>  

-- 
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger,
Thomas Gleixner, Sharon Heck, Yulia Beck, Tiffany Silva


More information about the elbe-devel mailing list