1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 03:56:04 +00:00

utils/misc: Fix linters violation

A mix of pylint and PEP8 violations that GitHub action enforces.
This commit is contained in:
Douglas Raillard 2023-10-05 13:03:02 +01:00 committed by Marc Bonnici
parent 6fe4bce68d
commit f166ac742e
3 changed files with 2 additions and 4 deletions

View File

@ -98,7 +98,6 @@ and the code to clear these file goes in teardown method. ::
"""
import sys
import logging
import inspect
from collections import OrderedDict

View File

@ -289,7 +289,7 @@ def get_article(word):
in all case; e.g. this will return ``"a hour"``.
"""
return'an' if word[0] in 'aoeiu' else 'a'
return 'an' if word[0] in 'aoeiu' else 'a'
def get_random_string(length):

View File

@ -29,15 +29,14 @@ import os
import re
import numbers
import shlex
import sys
from bisect import insort
from urllib.parse import quote, unquote # pylint: disable=no-name-in-module, import-error
from past.builtins import basestring # pylint: disable=redefined-builtin
# pylint: disable=wrong-import-position
from collections import defaultdict
from collections.abc import MutableMapping
from functools import total_ordering
from past.builtins import basestring # pylint: disable=redefined-builtin
from future.utils import with_metaclass
from devlib.utils.types import identifier, boolean, integer, numeric, caseless_string