From 5c43c3c8524895568b322f774ea619231b6b9c33 Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Sat, 9 Jan 2021 22:59:03 +0530 Subject: [PATCH] Remove unused imports from code.py & conftest.py (#3447) * remove unused imports from code.py & conftest.py * ignore F401 flake8 * ignore F401 flake8 Co-authored-by: Shubham Kumar --- openlibrary/code.py | 5 ----- openlibrary/conftest.py | 8 +++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/openlibrary/code.py b/openlibrary/code.py index 44236358a22..123d086b454 100644 --- a/openlibrary/code.py +++ b/openlibrary/code.py @@ -32,9 +32,6 @@ def setup(): load_views() - # load actions - from . import actions - logger.info("loading complete.") def setup_logging(): @@ -51,7 +48,5 @@ def setup_logging(): def load_views(): """Registers all views by loading all view modules. """ - from .views import showmarc - from .views import loanstats setup() diff --git a/openlibrary/conftest.py b/openlibrary/conftest.py index 06bdc7a4757..900410b41c1 100644 --- a/openlibrary/conftest.py +++ b/openlibrary/conftest.py @@ -1,6 +1,5 @@ """pytest configutation for openlibrary """ -import glob import pytest import web @@ -12,10 +11,9 @@ from openlibrary.i18n import gettext from openlibrary.core import helpers -from openlibrary.mocks.mock_infobase import mock_site -from openlibrary.mocks.mock_ia import mock_ia -from openlibrary.mocks.mock_memcache import mock_memcache -from openlibrary.mocks.mock_ol import ol +from openlibrary.mocks.mock_infobase import mock_site # noqa: F401 +from openlibrary.mocks.mock_ia import mock_ia # noqa: F401 +from openlibrary.mocks.mock_memcache import mock_memcache # noqa: F401 @pytest.fixture(autouse=True) def no_requests(monkeypatch):