diff --git a/.pylintrc b/.pylintrc index a55afb4..08fdb25 100644 --- a/.pylintrc +++ b/.pylintrc @@ -63,7 +63,6 @@ confidence= disable=logging-fstring-interpolation, # too-few-public-methods, invalid-name, - no-self-use, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -251,13 +250,6 @@ max-line-length=120 # Maximum number of lines in a module. max-module-lines=1000 -# List of optional constructs for which whitespace checking is disabled. `dict- -# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. -# `trailing-comma` allows a space between comma and closing bracket: (a, ). -# `empty-line` allows space-only lines. -no-space-check=trailing-comma, - dict-separator - # Allow the body of a class to be on the same line as the declaration if body # contains single statement. single-line-class-stmt=no diff --git a/cioban/lib/helpers.py b/cioban/lib/helpers.py index 7233ead..7f93a39 100644 --- a/cioban/lib/helpers.py +++ b/cioban/lib/helpers.py @@ -4,6 +4,7 @@ import logging import os +# pylint: disable=deprecated-module from distutils.util import strtobool log = logging.getLogger("cioban") diff --git a/cioban/lib/notifiers.py b/cioban/lib/notifiers.py index bd705fa..cd4023f 100644 --- a/cioban/lib/notifiers.py +++ b/cioban/lib/notifiers.py @@ -22,6 +22,7 @@ def notify(self, **kwargs): kwargs['title'] = f'CIOBAN: {title}' for notifier_name, notifier in self.registered.items(): log.debug(f'Sending notification to {notifier_name}') + # pylint: disable=unnecessary-dunder-call notification_method = self.__getattribute__(f'{notifier_name}_notify') notification_method(notifier=notifier, **kwargs)