[elbe-devel] [PATCH 02/75] Remove pylint too-few-public-methods

Torben Hohn torben.hohn at linutronix.de
Fri May 29 10:37:14 CEST 2020


On Mon, May 25, 2020 at 11:41:55AM -0400, Olivier Dion wrote:
> I find this rule very not important.  Make pylint quiet about it
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  .pylintrc           | 2 +-
>  elbepack/packers.py | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/.pylintrc b/.pylintrc
> index 21f248af..d3c9cb18 100644
> --- a/.pylintrc
> +++ b/.pylintrc
> @@ -39,7 +39,7 @@ 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,too-few-public-methods
>  
>  
>  [REPORTS]
> diff --git a/elbepack/packers.py b/elbepack/packers.py
> index ea0c90af..2cef6e72 100644
> --- a/elbepack/packers.py
> +++ b/elbepack/packers.py
> @@ -8,19 +8,19 @@ from elbepack.shellhelper import CommandError, do
>  
>  
>  class Packer(object):
> -    # pylint: disable=too-few-public-methods
> +
>      def pack_file(self, _builddir, _fname):
>          raise NotImplementedError('abstract method called')
>  
>  
>  class NoPacker(Packer):
> -    # pylint: disable=too-few-public-methods
> +
>      def pack_file(self, _builddir, fname):
>          return fname
>  
>  
>  class InPlacePacker(Packer):
> -    # pylint: disable=too-few-public-methods
> +
>      def __init__(self, cmd, suffix):
>  
>          self.cmd = cmd
> @@ -40,7 +40,7 @@ class InPlacePacker(Packer):
>  
>  
>  class TarArchiver(Packer):
> -    # pylint: disable=too-few-public-methods
> +
>      def __init__(self, flag, suffix):
>          self.flag = flag
>          self.suffix = suffix
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
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



More information about the elbe-devel mailing list