diff --git a/avocado/core/restclient/connection.py b/avocado/core/restclient/connection.py index 5f0176e3ec5e5859d60806f721b06298bea5a26b..0386d7354f8511c4415c45aee8598f3a46394414 100644 --- a/avocado/core/restclient/connection.py +++ b/avocado/core/restclient/connection.py @@ -209,7 +209,7 @@ def get_default(): :returns: an avocado.core.restclient.connection.Connection instance """ - global CONNECTION + global CONNECTION # pylint: disable=W0603 if CONNECTION is None: CONNECTION = Connection() diff --git a/avocado/utils/genio.py b/avocado/utils/genio.py index 96a165bbada5bb903db13cea3247112fdf937f9f..3b7cc5f752a2bb9f567919897f8577f9f237ff76 100644 --- a/avocado/utils/genio.py +++ b/avocado/utils/genio.py @@ -46,7 +46,7 @@ def log_line(filename, line): the dir set by set_log_file_dir(). :param line: Line to write. """ - global _open_log_files, _log_file_dir + global _open_log_files, _log_file_dir # pylint: disable=W0603 path = utils_path.get_path(_log_file_dir, filename) if path not in _open_log_files: @@ -69,12 +69,12 @@ def set_log_file_dir(directory): :param dir: Directory for log files. """ - global _log_file_dir + global _log_file_dir # pylint: disable=W0603 _log_file_dir = directory def close_log_file(filename): - global _open_log_files, _log_file_dir + global _open_log_files, _log_file_dir # pylint: disable=W0603 remove = [] for k in _open_log_files: if os.path.basename(k) == filename: diff --git a/avocado/utils/process.py b/avocado/utils/process.py index f29df8e9b1c4b6fa6546d5f96349a1f1a2b7c2bf..8826c658e66b512e5d890f228dd1c061ad53232d 100644 --- a/avocado/utils/process.py +++ b/avocado/utils/process.py @@ -1169,7 +1169,7 @@ def should_run_inside_wrapper(cmd): :param cmd: the command arguments, from where we extract the binary name """ - global CURRENT_WRAPPER + global CURRENT_WRAPPER # pylint: disable=W0603 CURRENT_WRAPPER = None args = cmd_split(cmd) cmd_binary_name = args[0] diff --git a/selftests/checkall b/selftests/checkall index 5338094d23a01947e8df613a40dad10eac598fc9..5257e7d28df79f1d0cb3339016d1fa39ce811b51 100755 --- a/selftests/checkall +++ b/selftests/checkall @@ -169,7 +169,7 @@ results_dir_content() { [ "$SKIP_RESULTSDIR_CHECK" ] || RESULTS_DIR_CONTENT="$(ls $RESULTS_DIR 2> /dev/null)" LINT_CMD="inspekt lint --exclude=.git" -PYLINT_ENABLE="--enable R0401,W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0111,W0120,W0122,W0123,W0124,W0125,W0150,W0199,W0211,W0222,W0232,W0233,W0301,W0312,W0401,W0404,W0406,W0410,W0601,W0602,W0604,W0611,W0612,W0614,W0622,W0623,W0640,W0711,W1202,W1300,W1301,W1302,W1303,W1304,W1305,W1306,W1307,W1401,W1402,W1501,W1645" +PYLINT_ENABLE="--enable R0401,W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0111,W0120,W0122,W0123,W0124,W0125,W0150,W0199,W0211,W0222,W0232,W0233,W0301,W0312,W0401,W0404,W0406,W0410,W0601,W0602,W0603,W0604,W0611,W0612,W0614,W0622,W0623,W0640,W0711,W1202,W1300,W1301,W1302,W1303,W1304,W1305,W1306,W1307,W1401,W1402,W1501,W1645" if [ "$AVOCADO_PARALLEL_LINT" ]; then LINT_CMD="$LINT_CMD --parallel=$AVOCADO_PARALLEL_LINT" fi