From: John Mulligan Date: Fri, 1 Nov 2024 17:43:31 +0000 (-0400) Subject: python-common/deployment: disable some unused import flake8 errors X-Git-Tag: v20.0.0~647^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d34492c694a33e3e6338b80273676f0f143e9ea8;p=ceph.git python-common/deployment: disable some unused import flake8 errors Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan --- diff --git a/src/python-common/ceph/deployment/drive_selection/selector.py b/src/python-common/ceph/deployment/drive_selection/selector.py index 59ebbb6347e..85fc95cf394 100644 --- a/src/python-common/ceph/deployment/drive_selection/selector.py +++ b/src/python-common/ceph/deployment/drive_selection/selector.py @@ -3,7 +3,7 @@ import logging from typing import List, Optional, Dict, Callable from ..inventory import Device -from ..drive_group import DriveGroupSpec, DeviceSelection, DriveGroupValidationError +from ..drive_group import DriveGroupSpec, DeviceSelection, DriveGroupValidationError # noqa: F401 from .filter import FilterGenerator from .matchers import _MatchInvalid