Refactor: Fix F401 module imported but unused 92/68392/1
authorThanh Ha <zxiiro@gmail.com>
Sat, 31 Jul 2021 12:01:18 +0000 (08:01 -0400)
committerThanh Ha <zxiiro@gmail.com>
Sat, 31 Jul 2021 12:02:20 +0000 (08:02 -0400)
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 <zxiiro@gmail.com>
docs/conf.py
lftools/cli/nexus3/asset.py
tests/test_deploy.py
tests/test_release_docker_hub.py

index 2ce6e65..40f03fa 100644 (file)
 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"))
index 88a49cc..1229239 100644 (file)
@@ -17,8 +17,6 @@ from pprint import pformat
 
 import click
 
-from lftools.api.endpoints import nexus3
-
 log = logging.getLogger(__name__)
 
 
index 299a794..88d2e6e 100644 (file)
@@ -10,7 +10,6 @@
 """Test deploy command."""
 
 import os
-import sys
 
 import pytest
 import requests
index a7d6832..be5b8c4 100644 (file)
 """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__)),