mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 11:52:36 +01:00
Pylint Fixes
Update our version of pylint to use the latest version and update the codebase to comply with the majority of the updates. For now disable the additional checks for `super-with-arguments`, `useless-object-inheritance`, `raise-missing-from`, `no-else-raise`, `no-else-break`, `no-else-continue` to be consistent with the existing codebase.
This commit is contained in:
@@ -45,7 +45,7 @@ def get_terminal_size():
|
||||
|
||||
|
||||
def _get_terminal_size_windows():
|
||||
# pylint: disable=unused-variable,redefined-outer-name,too-many-locals
|
||||
# pylint: disable=unused-variable,redefined-outer-name,too-many-locals, import-outside-toplevel
|
||||
try:
|
||||
from ctypes import windll, create_string_buffer
|
||||
# stdin handle is -10
|
||||
@@ -77,6 +77,7 @@ def _get_terminal_size_tput():
|
||||
|
||||
|
||||
def _get_terminal_size_linux():
|
||||
# pylint: disable=import-outside-toplevel
|
||||
def ioctl_GWINSZ(fd):
|
||||
try:
|
||||
import fcntl
|
||||
|
Reference in New Issue
Block a user