From 2e50507c98c823bad5f07eedf2a4d497efca59d7 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Mon, 26 Aug 2024 11:49:29 -0400 Subject: [PATCH] minor pylint fixes --- .pylintrc | 4 ++-- qt/includemocs/includemocs.py | 2 +- squish/kdrunsquish.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index e181895..6b9579b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -595,5 +595,5 @@ preferred-modules= # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception +#overgeneral-exceptions=BaseException, +# Exception diff --git a/qt/includemocs/includemocs.py b/qt/includemocs/includemocs.py index 0ca6972..03fe48f 100644 --- a/qt/includemocs/includemocs.py +++ b/qt/includemocs/includemocs.py @@ -32,7 +32,7 @@ def stripInitialSlash(path): def shouldExclude(root, path): - # pylint: disable=used-before-assignment + # pylint: disable=used-before-assignment,possibly-used-before-assignment if not args.excludes: return False # No excludes provided diff --git a/squish/kdrunsquish.py b/squish/kdrunsquish.py index 288c17d..f731ee3 100644 --- a/squish/kdrunsquish.py +++ b/squish/kdrunsquish.py @@ -347,6 +347,7 @@ async def _runAsync(self, env): print(self.serverStdout.getvalue()) print(self.runnerStdout.getvalue()) + tag = "" if passedUnexpectedly: tag = '[XOK ]' elif passedExpectedly: