From f166ac742eb9501bf6945585102d034f7f36a801 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 5 Oct 2023 13:03:02 +0100 Subject: [PATCH] utils/misc: Fix linters violation A mix of pylint and PEP8 violations that GitHub action enforces. --- wa/framework/instrument.py | 1 - wa/utils/misc.py | 2 +- wa/utils/types.py | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wa/framework/instrument.py b/wa/framework/instrument.py index 73aa9b84..66336166 100644 --- a/wa/framework/instrument.py +++ b/wa/framework/instrument.py @@ -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 diff --git a/wa/utils/misc.py b/wa/utils/misc.py index 88256fc8..36869143 100644 --- a/wa/utils/misc.py +++ b/wa/utils/misc.py @@ -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): diff --git a/wa/utils/types.py b/wa/utils/types.py index 1e4f91ea..767b882b 100644 --- a/wa/utils/types.py +++ b/wa/utils/types.py @@ -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