[elbe-devel] [PATCH 01/40] pylintrc: update parameters

Torben Hohn torben.hohn at linutronix.de
Thu Sep 20 11:00:22 CEST 2018


On Fri, Sep 14, 2018 at 01:56:13PM +0200, Manuel Traut wrote:
>  - hide annotated errors/warnings
>  - disable to few public methods warning
>      it makes no sense for base classes and i think it's no big problem at
>      all if a class doesn't provide public methods
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
>  .pylintrc | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/.pylintrc b/.pylintrc
> index 705ab2e0..8d82d62c 100644
> --- a/.pylintrc
> +++ b/.pylintrc
> @@ -39,7 +39,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
> +disable=bad-whitespace,missing-docstring,bad-continuation,invalid-name,line-too-long,I0011,too-few-public-methods

I0011 is fine.
too-few-public-methods actually points at places, where we should
be using namedtuple
https://docs.python.org/2/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields

dont we want to convert these occurences at some point in the future ?


rest is good.

i would vote to split this, and add a comment about the namedtuple, if
you say we want to disable them for now.


> +
>  
>  
>  [REPORTS]
> @@ -114,7 +115,9 @@ 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.
> -generated-members=REQUEST,acl_users,aq_parent
> +generated-members=REQUEST,acl_users,aq_parent,gpgme.SIGSUM_*,gpgme.SIG_MODE_NORMAL
> +
> +extension-pkg-whitelist=apt_pkg,gpgme,lxml.etree,_ped
>  
>  
>  [BASIC]
> -- 
> 2.19.0.rc2
> 

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/7caf6e2e/attachment.sig>


More information about the elbe-devel mailing list