From: Thanh Ha Date: Sat, 31 Jul 2021 12:01:18 +0000 (-0400) Subject: Refactor: Fix F401 module imported but unused X-Git-Tag: v0.35.6~2^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=1f8458005efba2401ae5a7ae513faf59eba1f893;p=releng%2Flftools.git Refactor: Fix F401 module imported but unused A module has been imported but is not used anywhere in the file. The module should either be used or the import should be removed. Ref: https://www.flake8rules.com/rules/F401.html Change-Id: I3e73260628bdbeccab2a7dd78215aa83a2ee71ff Signed-off-by: Thanh Ha --- diff --git a/docs/conf.py b/docs/conf.py index 2ce6e653..40f03fad 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,11 +20,11 @@ import os import sys -import sphinx_bootstrap_theme +import sphinx_bootstrap_theme # noqa sys.path.insert(0, os.path.abspath("..")) -from docs_conf.conf import * +from docs_conf.conf import * # noqa from pbr.version import VersionInfo version = str(VersionInfo("lftools")) diff --git a/lftools/cli/nexus3/asset.py b/lftools/cli/nexus3/asset.py index 88a49cc1..1229239d 100644 --- a/lftools/cli/nexus3/asset.py +++ b/lftools/cli/nexus3/asset.py @@ -17,8 +17,6 @@ from pprint import pformat import click -from lftools.api.endpoints import nexus3 - log = logging.getLogger(__name__) diff --git a/tests/test_deploy.py b/tests/test_deploy.py index 299a794a..88d2e6ee 100644 --- a/tests/test_deploy.py +++ b/tests/test_deploy.py @@ -10,7 +10,6 @@ """Test deploy command.""" import os -import sys import pytest import requests diff --git a/tests/test_release_docker_hub.py b/tests/test_release_docker_hub.py index a7d68321..be5b8c4e 100644 --- a/tests/test_release_docker_hub.py +++ b/tests/test_release_docker_hub.py @@ -10,14 +10,12 @@ """Test deploy command.""" import os -import sys import pytest import requests import responses import lftools.nexus.release_docker_hub as rdh -from lftools import cli FIXTURE_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)),