pylint: increase max attributes to 10

In three places we have more than 7 instances attributes, but less
then 10; instead of disabling the warning for all these cases,
increase the limit to a reasonable size of 10 and re-enable the
warnings in all the places.
This commit is contained in:
Christian Kellner 2020-07-10 10:10:42 +02:00
parent 4b290dd2a4
commit 291fadd0b2
4 changed files with 3 additions and 3 deletions

View file

@ -4,3 +4,6 @@ max-line-length=120
[TYPECHECK]
ignored-classes=osbuild.loop.LoopInfo
[DESIGN]
max-attributes=10

View file

@ -201,7 +201,6 @@ class Filesystem:
maker(device, self.uuid, self.label)
# pylint: disable=too-many-instance-attributes
class Partition:
def __init__(self,
pttype: str = None,

View file

@ -40,7 +40,6 @@ def umount(target, lazy=True):
subprocess.run(["umount"] + args + [target], check=True)
# pylint: disable=too-many-instance-attributes
class Object:
def __init__(self, store: "ObjectStore"):
self._init = True

View file

@ -6,7 +6,6 @@ from .util import jsoncomm
class SourcesServer:
# pylint: disable=too-many-instance-attributes
def __init__(self, socket_address, libdir, options, cache, output):
self.socket_address = socket_address
self.libdir = libdir