[elbe-devel] [PATCH 02/75] Remove pylint too-few-public-methods
Olivier Dion
dion at linutronix.de
Mon May 25 17:41:55 CEST 2020
I find this rule very not important. Make pylint quiet about it
Signed-off-by: Olivier Dion <dion 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
More information about the elbe-devel
mailing list