From 972c4829b88d4ae4ba4cc5df39ab77d9413360fc Mon Sep 17 00:00:00 2001 From: jamesread Date: Tue, 25 Jul 2023 13:18:01 +0100 Subject: [PATCH] Cleanup pylint errors --- .github/workflows/pylint.yml | 1 + gmail-exporter.py | 2 +- pylintrc | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 2a51eb1..1af2bc3 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -25,4 +25,5 @@ jobs: - name: Analysing the code with pylint run: | + pylint --version pylint $(git ls-files '*.py') diff --git a/gmail-exporter.py b/gmail-exporter.py index 602e724..735a0fd 100755 --- a/gmail-exporter.py +++ b/gmail-exporter.py @@ -232,7 +232,7 @@ def main(): GMAIL_CLIENT = get_gmail_client() logging.info("Got gmail client successfully") - + start_http_server(args.promPort) logging.info("Prometheus started on port %d", args.promPort) diff --git a/pylintrc b/pylintrc index c36006e..c48ebf4 100644 --- a/pylintrc +++ b/pylintrc @@ -504,5 +504,5 @@ min-public-methods=2 # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception +overgeneral-exceptions=builtins.BaseException, + builtins.Exception