From 50c996f71a72895ab000c355d7163103ad161d9c Mon Sep 17 00:00:00 2001 From: Praveen K Pandey Date: Fri, 5 Apr 2024 10:13:36 +0530 Subject: [PATCH] Fixed lylint issue as unused variable Signed-off-by: Praveen K Pandey --- .github/workflows/pylint.yml | 2 +- OpTestConfiguration.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8d26f072..8d11b1fa 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -24,4 +24,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') + pylint -d C0301,C0325,C0114,C0103,C0209,W0718,W1202,R0912 $(git ls-files '*.py') diff --git a/OpTestConfiguration.py b/OpTestConfiguration.py index 3c5ac4a1..d35f7661 100644 --- a/OpTestConfiguration.py +++ b/OpTestConfiguration.py @@ -514,7 +514,7 @@ def parse_config_file(self, filename, optional=False): config.read(filename) if config.has_section('op-test'): - d = dict(config.items('op-test')) + dict(config.items('op-test')) else: msg = "{} is missing an an [op-test] section header".format( filename) @@ -671,7 +671,7 @@ def do_testing_setup(self): # log for triage of how dated the repo is OpTestLogger.optest_logger_glob.optest_logger.debug( "op-test-framework git level = {}".format(git_output)) - except Exception as e: + except Exception: OpTestLogger.optest_logger_glob.optest_logger.debug( "Unable to get git describe")