From c281753e56659a33e9b39e84a0de71787d9560ba Mon Sep 17 00:00:00 2001 From: Alex Thomae Date: Sun, 31 Jul 2022 16:10:17 +0200 Subject: [PATCH 1/2] Update promethes_client from 0.13.1 to 0.14.1 --- cioban/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cioban/requirements.txt b/cioban/requirements.txt index 99734af..7c7b0e9 100644 --- a/cioban/requirements.txt +++ b/cioban/requirements.txt @@ -1,4 +1,4 @@ -prometheus_client==0.13.1 +prometheus_client==0.14.1 docker==5.0.3 pause==0.3 pygelf==0.4.2 From 9968527860cdbf2e453b8f2db04ead0b95dd6c88 Mon Sep 17 00:00:00 2001 From: Alex Thomae Date: Sun, 31 Jul 2022 16:21:50 +0200 Subject: [PATCH 2/2] Make the latest linter happy --- .pylintrc | 8 -------- cioban/lib/helpers.py | 1 + cioban/lib/notifiers.py | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) 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)